getGanZhi method
Implementation
String getGanZhi() {
if (_index < 1) {
return '';
}
int offset = LunarUtil.getJiaZiIndex(_lunar!.getMonthInGanZhiExact());
offset += _yun!.isForward() ? _index : -_index;
int size = LunarUtil.JIA_ZI.length;
if (offset >= size) {
offset -= size;
}
if (offset < 0) {
offset += size;
}
return LunarUtil.JIA_ZI[offset];
}