/// <summary> /// 获取干支 /// </summary> /// <returns>干支</returns> public string getGanZhi() { int offset = LunarUtil.getJiaZiIndex(lunar.getTimeInGanZhi()); int add = this.index + 1; if (daYun.getIndex() > 0) { add += daYun.getStartAge() - 1; } offset += forward ? add : -add; int size = LunarUtil.JIA_ZI.Length; while (offset < 0) { offset += size; } offset %= size; return(LunarUtil.JIA_ZI[offset]); }
public string getTime() { return(lunar.getTimeInGanZhi()); }