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

    Function zhiChar

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

    • Get an Earthly Branch (地支) character by index

      Parameters

      • index: number

        Branch index (0-11), wraps around for out-of-range values

      Returns string

      The corresponding Chinese character

      zhiChar(0)   // "子"
      zhiChar(11) // "亥"