getGanZhi method
Implementation
String getGanZhi() {
int offset = LunarUtil.getJiaZiIndex(_lunar!.getTimeInGanZhi());
int add = _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];
}