Heavenly Stems (天干) and Earthly Branches (地支) calculations. Used for year/month/day pillars in traditional Chinese timekeeping.
Get a Heavenly Stem (天干) character by index
Stem index (0-9), wraps around for out-of-range values
The corresponding Chinese character
ganChar(0) // "甲"ganChar(9) // "癸" Copy
ganChar(0) // "甲"ganChar(9) // "癸"
Heavenly Stems (天干) and Earthly Branches (地支) calculations. Used for year/month/day pillars in traditional Chinese timekeeping.