Heavenly Stems (天干) and Earthly Branches (地支) calculations. Used for year/month/day pillars in traditional Chinese timekeeping.
Get an Earthly Branch (地支) character by index
Branch index (0-11), wraps around for out-of-range values
The corresponding Chinese character
zhiChar(0) // "子"zhiChar(11) // "亥" Copy
zhiChar(0) // "子"zhiChar(11) // "亥"
Heavenly Stems (天干) and Earthly Branches (地支) calculations. Used for year/month/day pillars in traditional Chinese timekeeping.