Chinese Dates Macro Functions

Navigation:  Appendices > Macro Language > Built-in Functions >

Chinese Dates Macro Functions

Previous pageReturn to chapter overviewNext page

This topic regroups all the macro functions that let you perform calculations based on the Chinese calendar, including holidays.

 

The following functions are used to calculate dates of the Chinese Lunar Calendar :

 

chCycleOf

The number of the current 60-year cycle (cycle 1 started on February 15, 2637 B.C.).

chDateInYear

The first and, eventually, second date on which a Chinese date (day and month of the lunar calendar) occurs for a given Gregorian (Western) year.

chDayOf

The Chinese lunar day number, for a given Gregorian (western) date.

chIsLeapMonth

Determines if the Chinese lunar month, based on a given Gregorian (western) date, is a leap month or not.

chMonthOf

The Chinese lunar month number, for a given Gregorian (western) date.

chYearName

The Chinese lunar year name (eg. Rooster, Dragon, ...), for a given Gregorian (western) date.

chYearOf

The Chinese lunar year number (within the current 60-year cycle), for a given Gregorian (western) date.

chFullYearOf

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.

 

 

The following functions are used to calculate dates of the Chinese Solar Calendar :

 

chDateSolarTermOnOrBefore

The date of the preceding Solar Term (minor or major).

chDateSolarTermOnOrAfter

The date of the following Solar Term (minor or major).

 

 

Click on any of the above links for more details on the implementation and sample usage for each of these functions.


Topic 160800 updated on 03-Jul-2004.
Topic URL: http://www.qppstudio.net/webhelp/index.html?chinesedates.htm