LunarTime.fromYmdHms constructor
LunarTime.fromYmdHms()
Implementation
LunarTime.fromYmdHms(int lunarYear, int lunarMonth, int lunarDay, int hour,
int minute, int second) {
_lunar =
Lunar.fromYmdHms(lunarYear, lunarMonth, lunarDay, hour, minute, second);
_zhiIndex = LunarUtil.getTimeZhiIndex(
'${hour < 10 ? '0' : ''}$hour:${minute < 10 ? '0' : ''}$minute');
_ganIndex = (_lunar!.getDayGanIndexExact() % 5 * 2 + _zhiIndex) % 10;
}