Skip to content

Commit

Permalink
Merge pull request #156 from heiglandreas/addSwissHolidays
Browse files Browse the repository at this point in the history
  • Loading branch information
heiglandreas committed Aug 5, 2023
2 parents 785110c + fb90850 commit ed93827
Show file tree
Hide file tree
Showing 18 changed files with 374 additions and 0 deletions.
22 changes: 22 additions & 0 deletions share/CH-AI.xml
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<easter offset="-2" free="true">Karfreitag</easter>
<easter offset="1" free="true">Ostermontag</easter>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true">Pfingstmontag</easter>
<easter offset="60" free="true">Frohnleichnam</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="15" month="8" free="true">Mariä Himmelfahrt</date>
<date day="1" month="11" free="true">Allerheiligen</date>
<date day="8" month="12" free="true">Mariä Empfängnis</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true" restriction="unless it falls onto a tuesday or a saturday. Despite that usually free">Stephanstag</date>
</holidays>
18 changes: 18 additions & 0 deletions share/CH-AR.xml
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<easter offset="-2" free="true">Karfreitag</easter>
<easter offset="1" free="true">Ostermontag</easter>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true">Pfingstmontag</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true" restriction="unless it falls onto a tuesday or a saturday. Despite that usually free">Stephanstag</date>
</holidays>
19 changes: 19 additions & 0 deletions share/CH-BE.xml
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<date day="2" month="1" free="true" >Berchtoldstag</date>
<easter offset="-2" free="true">Karfreitag</easter>
<easter offset="1" free="true">Ostermontag</easter>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true">Pfingstmontag</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true">Stephanstag</date>
</holidays>
21 changes: 21 additions & 0 deletions share/CH-BL.xml
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<easter offset="-2" free="true">Karfreitag</easter>
<easter offset="1" free="true">Ostermontag</easter>
<date day="1" month="5" free="true">Tag der Arbeit</date>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true">Pfingstmontag</easter>
<easter offset="60" free="true" restriction="only in some municipalities">Frohnleichnam</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="15" month="8" free="true" restriction="only in some municipalities">Mariä Himmelfahrt</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true">Stephanstag</date>
</holidays>
19 changes: 19 additions & 0 deletions share/CH-BS.xml
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<easter offset="-2" free="true">Karfreitag</easter>
<easter offset="1" free="true">Ostermontag</easter>
<date day="1" month="5" free="true">Tag der Arbeit</date>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true">Pfingstmontag</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true">Stephanstag</date>
</holidays>
25 changes: 25 additions & 0 deletions share/CH-FR.xml
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<date day="2" month="1" free="true" restriction="despite not being an official holiday mostly free">Berchtoldstag</date>
<date day="19" month="3" free="true" restriction="only in some municipalities">Josefstag</date>
<easter offset="-2" free="true">Karfreitag</easter>
<easter offset="1" free="true" restriction="despite not being an official holiday mostly free">Ostermontag</easter>
<date day="1" month="5" free="true" restriction="starts at 12:00; only for public employees; usually observed by everyone">Tag der Arbeit</date>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true" restriction="despite not being an official holiday mostly free">Pfingstmontag</easter>
<easter offset="60" free="true" restriction="only in some municipalities">Frohnleichnam</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="15" month="8" free="true" restriction="only in some municipalities">Mariä Himmelfahrt</date>
<date day="1" month="11" free="true" restriction="only in some municipalities">Allerheiligen</date>
<date day="8" month="12" free="true" restriction="only in some municipalities">Mariä Empfängnis</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true">Stephanstag</date>
</holidays>
20 changes: 20 additions & 0 deletions share/CH-GL.xml
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<date day="2" month="1" free="true" restriction="despite not being an official holiday mostly free">Berchtoldstag</date>
<easter offset="-2" free="true" restriction="despite not being an official holiday mostly free">Karfreitag</easter>
<easter offset="1" free="true">Ostermontag</easter>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true" restriction="despite not being an official holiday mostly free">Pfingstmontag</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="1" month="11" free="true">Allerheiligen</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true">Stephanstag</date>
</holidays>
24 changes: 24 additions & 0 deletions share/CH-LU.xml
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<date day="2" month="1" free="true" restriction="despite not being an official holiday mostly free">Berchtoldstag</date>
<date day="19" month="3" free="true" restriction="only in some municipalities">Josefstag</date>
<easter offset="-2" free="true" restriction="despite not being an official holiday mostly free">Karfreitag</easter>
<easter offset="1" free="true">Ostermontag</easter>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true" restriction="despite not being an official holiday mostly free">Pfingstmontag</easter>
<easter offset="60" free="true">Frohnleichnam</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="15" month="8" free="true">Mariä Himmelfahrt</date>
<date day="1" month="11" free="true">Allerheiligen</date>
<date day="8" month="12" free="true">Mariä Empfängnis</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true">Stephanstag</date>
</holidays>
23 changes: 23 additions & 0 deletions share/CH-NW.xml
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<date day="19" month="3" free="true">Josefstag</date>
<easter offset="-2" free="true" restriction="despite not being an official holiday mostly free">Karfreitag</easter>
<easter offset="1" free="true">Ostermontag</easter>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true" restriction="despite not being an official holiday mostly free">Pfingstmontag</easter>
<easter offset="60" free="true">Frohnleichnam</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="15" month="8" free="true">Mariä Himmelfahrt</date>
<date day="1" month="11" free="true">Allerheiligen</date>
<date day="8" month="12" free="true">Mariä Empfängnis</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true" restriction="despite not being an official holiday mostly free">Stephanstag</date>
</holidays>
23 changes: 23 additions & 0 deletions share/CH-OW.xml
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<date day="2" month="1" free="true" restriction="despite not being an official holiday mostly free">Berchtoldstag</date>
<easter offset="-2" free="true" restriction="despite not being an official holiday mostly free">Karfreitag</easter>
<easter offset="1" free="true">Ostermontag</easter>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true" restriction="despite not being an official holiday mostly free">Pfingstmontag</easter>
<easter offset="60" free="true">Frohnleichnam</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="15" month="8" free="true">Mariä Himmelfahrt</date>
<date day="1" month="11" free="true">Allerheiligen</date>
<date day="8" month="12" free="true">Mariä Empfängnis</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true" restriction="despite not being an official holiday mostly free">Stephanstag</date>
</holidays>
19 changes: 19 additions & 0 deletions share/CH-SG.xml
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<easter offset="-2" free="true">Karfreitag</easter>
<easter offset="1" free="true">Ostermontag</easter>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true">Pfingstmontag</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="1" month="11" free="true">Allerheiligen</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true">Stephanstag</date>
</holidays>
20 changes: 20 additions & 0 deletions share/CH-SH.xml
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<date day="2" month="1" free="true" restriction="despite not being an official holiday mostly free">Berchtoldstag</date>
<easter offset="-2" free="true">Karfreitag</easter>
<easter offset="1" free="true">Ostermontag</easter>
<date day="1" month="5" free="true">Tag der Arbeit</date>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true">Pfingstmontag</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true">Stephanstag</date>
</holidays>
25 changes: 25 additions & 0 deletions share/CH-SO.xml
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<date day="2" month="1" free="true" restriction="despite not being an official holiday mostly free">Berchtoldstag</date>
<date day="19" month="3" free="true" restriction="only in some municipalities">Josefstag</date>
<easter offset="-2" free="true">Karfreitag</easter>
<easter offset="1" free="true" restriction="despite not being an official holiday free in some municipalities">Ostermontag</easter>
<date day="1" month="5" free="true" restriction="starts at 12:00">Tag der Arbeit</date>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true" restriction="only in some municipalities">Pfingstmontag</easter>
<easter offset="60" free="true" restriction="only in some municipalities">Frohnleichnam</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="15" month="8" free="true" restriction="only in some municipalities">Mariä Himmelfahrt</date>
<date day="1" month="11" free="true" restriction="only in some municipalities">Allerheiligen</date>
<date day="8" month="12" free="true" restriction="only in some municipalities">Mariä Empfängnis</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true" restriction="only in some municipalities">Stephanstag</date>
</holidays>
24 changes: 24 additions & 0 deletions share/CH-SZ.xml
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<date day="6" month="1" free="true">Heilige Drei Könige</date>
<date day="19" month="3" free="true">Josefstag</date>
<easter offset="-2" free="true">Karfreitag</easter>
<easter offset="1" free="true">Ostermontag</easter>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true">Pfingstmontag</easter>
<easter offset="60" free="true">Frohnleichnam</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="15" month="8" free="true">Mariä Himmelfahrt</date>
<date day="1" month="11" free="true">Allerheiligen</date>
<date day="8" month="12" free="true">Mariä Empfängnis</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true">Stephanstag</date>
</holidays>
24 changes: 24 additions & 0 deletions share/CH-UR.xml
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" ?>
<holidays xmlns="https://heigl.org/holidays"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="holidays.xsd https://heigl.org/xml/xsd/holidays.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<resources>
<resource href="https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland" lastChecked="2023-04-21">Wikipedia</resource>
</resources>
<date day="1" month="1" free="true">Neujahrstag</date>
<date day="6" month="1" free="true">Heilige Drei Könige</date>
<date day="19" month="3" free="true">Josefstag</date>
<easter offset="-2" free="true">Karfreitag</easter>
<easter offset="1" free="true">Ostermontag</easter>
<easter offset="39" free="true">Auffahrt</easter>
<easter offset="50" free="true">Pfingstmontag</easter>
<easter offset="60" free="true">Frohnleichnam</easter>
<date day="1" month="8" free="true">Bundesfeier</date>
<date day="15" month="8" free="true">Mariä Himmelfahrt</date>
<date day="1" month="11" free="true">Allerheiligen</date>
<date day="8" month="12" free="true">Mariä Empfängnis</date>
<date day="25" month="12" free="true">Weihnachtstag</date>
<date day="26" month="12" free="true" restriction="unless it falls onto a tuesday or a saturday. Despite that usually free">Stephanstag</date>
</holidays>

0 comments on commit ed93827

Please sign in to comment.