Skip to content

Add Hong Kong holidays for 2027 and fix some earlier years - #3039

Open
sohailshk wants to merge 1 commit into
lballabio:masterfrom
sohailshk:fix/hong-kong-holidays-2027
Open

sohailshk wants to merge 1 commit into
lballabio:masterfrom
sohailshk:fix/hong-kong-holidays-2027

Conversation

@sohailshk

Copy link
Copy Markdown
Contributor

The Hong Kong calendar has no data for 2027, so the moving holidays of that year are business days on master. This adds them, from the government list (https://www.gov.hk/en/about/abouthk/holiday/2027.htm) and the HKEX circular CT/077/26 of June 1st, 2026: February 8th and 9th, April 5th, May 13th, June 9th, September 16th and October 8th.

It also fixes a few earlier dates, checked against the government lists:

  • When Christmas falls on a Saturday or Sunday, December 27th is also a holiday (the first weekday after Christmas Day if Christmas is on Saturday, the substitute for Christmas Day if it is on Sunday). The calendar only had it as data for 2011 and 2016; it is now a rule, which adds December 27th in 2004, 2005, 2010, 2021, 2022 and 2027.
  • 2012: the Buddha's birthday was on Saturday, April 28th, not on May 10th; October 2nd was a holiday, because the day following the Mid-Autumn Festival fell on National Day.
  • 2019: May 13th, the day following the Buddha's birthday (Sunday, May 12th).
  • 2021: April 6th, the day following Easter Monday.

Sources for the past years (archived copies of the gov.hk lists):

With the change, the calendar matches the government lists for all the years I could find (2004-2007, 2009-2016 and 2018-2027), except for the one-off holiday of September 3rd, 2015, which was announced after the list was published and is already in the calendar.

testHongKong now checks these dates and the full 2027 list, and no longer expects May 10th, 2012 to be a holiday. It fails on master with 18 errors and passes with the change.

Add the 2027 holidays and the December 27th holiday when Christmas falls
on a weekend. Also fix the 2012, 2019 and 2021 holidays according to the
government lists.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant