Macro functions that relate to the Chinese Calendar are covered in the following topics, or alternatively, you can access the alphabetical list of all macro functions.
The following functions are used to calculate dates of the Chinese Lunar Calendar :
The number of the current 60-year cycle (cycle 1 started on February 15, 2637 B.C.). |
|
The first and, if present, second occurrence of the specified Chinese lunar day and month within a given Gregorian year. |
|
The Chinese lunar day number, for a given Gregorian (western) date. |
|
Determines if the Chinese lunar month, based on a given Gregorian (western) date, is a leap month or not. |
|
The Chinese lunar month number, for a given Gregorian (western) date. |
|
The Chinese year name, consisting of its stem and branch, for a given Gregorian date. |
|
The Chinese lunar year number (within the current 60-year cycle), for a given Gregorian (western) date. |
|
The full Chinese lunar year number (since the starting date of the Chinese calendar on February 15, 2637 B.C), for a given Gregorian (western) date. Note an important caveat about chinese year numbers. |
The following functions are used to calculate dates of the Chinese Solar Calendar :
The date of the most recent solar term on or before the specified date. |
|
The date of the next solar term on or after the specified date. |
Click on any of the above links for more details on the implementation and sample usage for each of these functions.
See also: chinese tokens.
Topic 160800, last updated on 11-Oct-2026