# SPDX-License-Identifier: MIT
# Holiday file for Jersey
# 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 %"New Year's Day%" %! %b.
REM 1 January OMIT SAT SUN AFTER ADDOMIT SCANFROM -28 SATISFY [isany(wkdaynum(date($Ty, 1, 1)), 0, 6)] MSG %"New Year's Day (substitute day)%" %! %b.
OMIT [easterdate($Uy)-2] MSG %"Good Friday%" %! %b.
OMIT [easterdate($Uy)+1] MSG %"Easter Monday%" %! %b.
REM First Monday in May ADDOMIT SCANFROM -28 MSG %"May Bank Holiday%" %! %b.
REM 9 May ADDOMIT SCANFROM -28 SATISFY [$Tw != 0] MSG %"Liberation Day%" %! %b.
REM Last Monday in May ADDOMIT SCANFROM -28 MSG %"Spring Bank Holiday%" %! %b.
REM Last Monday in August ADDOMIT SCANFROM -28 MSG %"Summer Bank Holiday%" %! %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 (substitute day)%" %! %b.
OMIT 26 December MSG %"Boxing Day%" %! %b.
REM 26 December OMIT SAT SUN AFTER ADDOMIT SCANFROM -28 SATISFY [isany(wkdaynum(date($Ty, 12, 26)), 0, 6)] MSG %"Boxing Day (substitute day)%" %! %b.
