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

    Function yearGanZhiStr

    Heavenly Stems (天干) and Earthly Branches (地支) calculations. Used for year/month/day pillars in traditional Chinese timekeeping.

    • Get year GanZhi as a formatted string

      Parameters

      Returns string

      Year GanZhi string, e.g., "甲辰"