python-holidays icon indicating copy to clipboard operation
python-holidays copied to clipboard

Lunisolar date tables: Chinese New Year 1916, Double Ninth 2057, Nyepi 1994 and 2004

Open b4D8 opened this issue 2 weeks ago • 1 comments

While cross-checking the calendars/ date tables against independent calendar data, Claude found the following entries disagree with their authoritative sources.

calendars/chinese.py

Table Year Current Should be Source
LUNAR_NEW_YEAR_DATES 1916 (FEB, 4) (FEB, 3) Hong Kong Observatory, Gregorian–Lunar Calendar Conversion Table of 1916: 1916/02/03 1st Lunar month Thursday
DOUBLE_NINTH_DATES 2057 (OCT, 7) (OCT, 6) Hong Kong Observatory, table of 2057: the 9th lunar month starts on 2057/9/28, so its 9th day is 2057/10/6

Affected entities: every country using the default Chinese New Year table for 1916 (CN, HK, MO, MY, BN, MM, MU, …), and HK, MO and XHKG for the Double Ninth 2057.

Since the other dates in these tables match the Observatory's tables, these look like isolated slips rather than a different reckoning.

calendars/balinese_saka.py (Indonesia's Nyepi)

Year Current Should be Source
1994 (MAR, 12) (APR, 12) Indonesia dalam tahun 1994, the source cited for 1983–2025: "12 April, Selasa, Hari Raya Nyepi (Tahun Baru Saka 1916)". 12 March 1994 falls in the eighth sasih (Kawolu), and Tilem Kasanga is 11 April.
2004 (MAR, 22) Nyepi itself on (MAR, 21); the public holiday moved to Monday 22 March Indonesia dalam tahun 2004: "22 Maret, Senin, Hari Raya Nyepi (Tahun Baru Saka 1926) (Diperingati 21 Maret)". Nyepi (Saka New Year 1926) was Sunday 21 March, and the government set the day off on the following Monday.

For 2004, a suggestion rather than a correction: NYEPI_DATES holds Nyepi's own date everywhere else, so it could hold 21 March, with Indonesia's 22 March day off for that year added as a moved holiday. Today the table conflates the two. If the table is meant to hold the day off, the current value is right, and a comment saying so would help.

Happy to open a PR with these changes if that's useful.

b4D8 avatar Nov 15 '26 11:11 b4D8

Hi, I am Aarambh, a 3rd year CSE student getting ready for GSoC 2027. I checked the sources in the issue and the three dates look wrong, 1916 Chinese New Year should be Feb 3, Double Ninth 2057 should be Oct 6, and Nyepi 1994 should be Apr 12. I can fix those three in the tables. For Nyepi 2004, should the table hold Mar 21 with Mar 22 as the day off, or stay as it is? Is it still free to work on?

Duke2nuke avatar Nov 22 '26 07:11 Duke2nuke