int = chYearOf(nWesternDate)
This macro function returns the full Chinese year number (counted from the origin of the Chinese calendar on February 15, 2637 B.C.) corresponding to the date nWesternDate.
➢Important: caveat about chinese year numbers
This number corresponds to the value of the current cycle times 60 (there are 60 years in a cycle) plus the value of the current year number.
nChCycle = chCycleOf(n_TokenDate)
nChYear = chYearOf(n_TokenDate)
nFullYear = (60*(nChCycle-1)) + nChYear
// the above calculation should give the same result as
nFullYear2 = chFullYearOf(n_TokenDate)
See also: chCycleOf, chYearOf, and other chinese dates functions.
Topic 176480, last updated on 08-Apr-2026