Skip to content

Commit

Permalink
Add GB holiday sources
Browse files Browse the repository at this point in the history
Signed-off-by: XSpielinbox <[email protected]>
  • Loading branch information
XSpielinbox committed Oct 4, 2023
1 parent ab20ecb commit be07e80
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions jollyday-core/src/main/resources/holidays/Holidays_gb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://focus_shift.de/jollyday/schema/holiday https://focus_shift.de/jollyday/schema/holiday/holiday.xsd">
<Holidays>
<!-- If a bank holiday is on a weekend, a ‘substitute’ weekday becomes a bank holiday, normally the following Monday. -->

<Fixed month="JANUARY" day="1" descriptionPropertiesKey="NEW_YEAR">
<MovingCondition substitute="SATURDAY" with="NEXT" weekday="MONDAY"/>
<MovingCondition substitute="SUNDAY" with="NEXT" weekday="MONDAY"/>
Expand Down Expand Up @@ -37,18 +39,38 @@
<ChristianHoliday type="GOOD_FRIDAY" descriptionPropertiesKey="christian.GOOD_FRIDAY"/>
</Holidays>

<Sources>
<Source>https://www.gov.uk/bank-holidays</Source>
<Source>https://www.direct.gov.uk/en/Governmentcitizensandrights/LivingintheUK/DG_073741</Source>
<Source>https://en.wikipedia.org/wiki/Public_holidays_in_the_United_Kingdom</Source>
<Source of="ISO 3166">https://www.iso.org/obp/ui/#iso:code:3166:GB</Source>
<Source of="ISO 3166-2">https://en.wikipedia.org/wiki/ISO_3166-2:GB</Source>
</Sources>

<SubConfigurations hierarchy="eng" description="England">
<Holidays>
<FixedWeekday which="LAST" weekday="MONDAY" month="AUGUST" descriptionPropertiesKey="SUMMER_BANK_HOLIDAY"/>
<ChristianHoliday type="EASTER_MONDAY" descriptionPropertiesKey="christian.EASTER_MONDAY"/>
</Holidays>

<Sources>
<Source>https://www.gov.uk/bank-holidays#england-and-wales</Source>
<Source>https://www.direct.gov.uk/en/Governmentcitizensandrights/LivingintheUK/DG_073741</Source>
<Source>https://en.wikipedia.org/wiki/Public_holidays_in_the_United_Kingdom</Source>
</Sources>
</SubConfigurations>
<!-- England and Wales are always the same -->
<SubConfigurations hierarchy="wls" description="Wales">
<Holidays>
<FixedWeekday which="LAST" weekday="MONDAY" month="AUGUST" descriptionPropertiesKey="SUMMER_BANK_HOLIDAY"/>
<ChristianHoliday type="EASTER_MONDAY" descriptionPropertiesKey="christian.EASTER_MONDAY"/>
</Holidays>

<Sources>
<Source>https://www.gov.uk/bank-holidays#england-and-wales</Source>
<Source>https://www.direct.gov.uk/en/Governmentcitizensandrights/LivingintheUK/DG_073741</Source>
<Source>https://en.wikipedia.org/wiki/Public_holidays_in_the_United_Kingdom</Source>
</Sources>
</SubConfigurations>

<SubConfigurations hierarchy="sct" description="Scotland">
Expand All @@ -61,6 +83,13 @@
<Fixed month="NOVEMBER" day="30" descriptionPropertiesKey="ST_ANDREW"/>
<FixedWeekday which="FIRST" weekday="MONDAY" month="AUGUST" descriptionPropertiesKey="SUMMER_BANK_HOLIDAY"/>
</Holidays>

<Sources>
<Source>https://www.gov.uk/bank-holidays#scotland</Source>
<Source>https://www.direct.gov.uk/en/Governmentcitizensandrights/LivingintheUK/DG_073741</Source>
<Source>https://www.mygov.scot/scotland-bank-holidays</Source>
<Source>https://en.wikipedia.org/wiki/Public_holidays_in_the_United_Kingdom</Source>
</Sources>
</SubConfigurations>

<SubConfigurations hierarchy="nir" description="Northern Ireland">
Expand All @@ -76,5 +105,11 @@
<FixedWeekday which="LAST" weekday="MONDAY" month="AUGUST" descriptionPropertiesKey="SUMMER_BANK_HOLIDAY"/>
<ChristianHoliday type="EASTER_MONDAY" descriptionPropertiesKey="christian.EASTER_MONDAY"/>
</Holidays>

<Sources>
<Source>https://www.gov.uk/bank-holidays#northern-ireland</Source>
<Source>https://www.nidirect.gov.uk/index/government-citizens-and-rights/living-in-northern-ireland/bank-holidays.htm</Source>
<Source>https://en.wikipedia.org/wiki/Public_holidays_in_the_United_Kingdom</Source>
</Sources>
</SubConfigurations>
</Configuration>

0 comments on commit be07e80

Please sign in to comment.