Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 385 Bytes

README.md

File metadata and controls

8 lines (5 loc) · 385 Bytes

HK Chinese New Year Holidays

I've reimplemented the algorithm from Dr. Herong Yang's java program and it is valid from 1901 to 2100.

getChineseNewYear returns the date of the chinese New Year from a given year in Date format

getChineseNewYears returns the period of the years

getHKChineseNewYearHolidays returns the HK CNY holidays from a given year in Date format