Heavenly Stems (天干) and Earthly Branches (地支) calculations. Used for year/month/day pillars in traditional Chinese timekeeping.
Get month GanZhi
Month Zhi is fixed: 正月=寅, 二月=卯, ..., 十二月=丑. Month Gan depends on the year's Gan using the 五虎遁月法 (Five Tigers method):
Lunar date value
GanZhi pair for the month
// 甲辰年正月 → 丙寅monthGanZhi({ cycle: 78, year: 1, month: 1, leap: false, day: 1 })// { gan: 2, zhi: 2 } Copy
// 甲辰年正月 → 丙寅monthGanZhi({ cycle: 78, year: 1, month: 1, leap: false, day: 1 })// { gan: 2, zhi: 2 }
Heavenly Stems (天干) and Earthly Branches (地支) calculations. Used for year/month/day pillars in traditional Chinese timekeeping.