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

    Function zodiacIndex

    Chinese zodiac animal signs. Locale-aware: returns different names for zh-CN ("龙"), zh-TW ("龍"), ja-JP ("辰"), ko-KR ("진"), vi-VN ("Thìn").

    • Get zodiac animal index (0-11) from a lunar date

      The zodiac follows the earthly branch (地支) of the year. Index 0 = 鼠 (Rat), index 11 = 猪 (Pig).

      Parameters

      Returns number

      Zodiac index (0-11)