# SPDX-License-Identifier: MIT
# Holiday file for Hong Kong
# Derived from the Python holidays project at
# https://github.com/vacanza/holidays
#
# See important caveats in the README file in this directory.

OMIT 1 January MSG %"The first day of January%" %! %b.
REM 1 January OMIT SAT SUN AFTER ADDOMIT SCANFROM -28 SATISFY [isany(wkdaynum(date($Ty, 1, 1)), 0, 6)] MSG %"The first day of January (observed)%" %! %b.
REM 4 April OMIT SAT SUN AFTER ADDOMIT SCANFROM -28 SATISFY [isany(wkdaynum(date($Ty, 4, 4)), 0, 6)] MSG %"Ching Ming Festival (observed)%" %! %b.
OMIT 1 May MSG %"Labour Day%" %! %b.
REM 1 May OMIT SAT SUN AFTER ADDOMIT SCANFROM -28 SATISFY [isany(wkdaynum(date($Ty, 5, 1)), 0, 6)] MSG %"Labour Day (observed)%" %! %b.
OMIT 1 July MSG %"Hong Kong Special Administrative Region Establishment Day%" %! %b.
REM 1 July OMIT SAT SUN AFTER ADDOMIT SCANFROM -28 SATISFY [isany(wkdaynum(date($Ty, 7, 1)), 0, 6)] MSG %"Hong Kong Special Administrative Region Establishment Day (observed)%" %! %b.
OMIT 1 October MSG %"National Day%" %! %b.
REM 1 October OMIT SAT SUN AFTER ADDOMIT SCANFROM -28 SATISFY [isany(wkdaynum(date($Ty, 10, 1)), 0, 6)] MSG %"National Day (observed)%" %! %b.
OMIT 25 December MSG %"Christmas Day%" %! %b.
REM 25 December OMIT SAT SUN AFTER ADDOMIT SCANFROM -28 SATISFY [isany(wkdaynum(date($Ty, 12, 25)), 0, 6)] MSG %"Christmas Day (observed)%" %! %b.
OMIT 26 December MSG %"The first weekday after Christmas Day%" %! %b.
REM 26 December OMIT SAT SUN AFTER ADDOMIT SCANFROM -28 SATISFY [isany(wkdaynum(date($Ty, 12, 26)), 0, 6)] MSG %"The first weekday after Christmas Day (observed)%" %! %b.

# Optional holidays
REM [easterdate($Uy)-2] MSG %"Good Friday%" %! %b.
REM [easterdate($Uy)-1] MSG %"The day following Good Friday%" %! %b.
REM [easterdate($Uy)+1] MSG %"Easter Monday%" %! %b.
