Heavenly Stems (天干) and Earthly Branches (地支) calculations. Used for year/month/day pillars in traditional Chinese timekeeping.
Get day GanZhi from JDE (Julian Ephemeris Day)
Uses the continuous sexagenary cycle based on Julian Day Number. The reference point: JDN 2451551 (2000-01-07) is 甲子日.
Julian Ephemeris Day
GanZhi pair for the day
dayGanZhi(2451551.5) // { gan: 0, zhi: 0 } → 甲子 Copy
dayGanZhi(2451551.5) // { gan: 0, zhi: 0 } → 甲子
Heavenly Stems (天干) and Earthly Branches (地支) calculations. Used for year/month/day pillars in traditional Chinese timekeeping.