Please enable JavaScript to view this site.


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.


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 18-Apr-2020