chinese-lunar-date API - v1.0.5
    Preparing search index...

    Function monthGanZhi

    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):

      • 甲/己年 → 丙寅起 (start from 丙寅)
      • 乙/庚年 → 戊寅起 (start from 戊寅)
      • 丙/辛年 → 庚寅起 (start from 庚寅)
      • 丁/壬年 → 壬寅起 (start from 壬寅)
      • 戊/癸年 → 甲寅起 (start from 甲寅)

      Parameters

      Returns GanZhiPair

      GanZhi pair for the month

      // 甲辰年正月 → 丙寅
      monthGanZhi({ cycle: 78, year: 1, month: 1, leap: false, day: 1 })
      // { gan: 2, zhi: 2 }