Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve holiday definitions for The Netherlands #435

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 34 additions & 6 deletions data/countries/NL.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
holidays:
# @attrib https://en.wikipedia.org/wiki/Public_holidays_in_the_Netherlands
# @attrib https://nl.wikipedia.org/wiki/Feestdagen_in_Nederland
# @attrib https://nl.wikipedia.org/wiki/Koningsdag_(Nederland)
# @source https://www.rijksoverheid.nl/onderwerpen/arbeidsovereenkomst-en-cao/vraag-en-antwoord/officiele-feestdagen
# @source https://www.government.nl/topics/working-hours/question-and-answer/public-holidays-in-the-netherlands
# @source https://www.government.nl/topics/school-holidays/question-and-answer/on-which-public-holidays-are-schools-closed-in-the-netherlands
NL:
names:
Expand All @@ -15,39 +17,65 @@ holidays:
days:
01-01:
_name: 01-01
# @source https://www.rijksoverheid.nl/onderwerpen/arbeidsovereenkomst-en-cao/vraag-en-antwoord/goede-vrijdag-vrije-dag
easter -2:
_name: easter -2
type: school
easter:
_name: easter
easter 1:
_name: easter 1
04-27 if sunday then previous saturday:
# @source https://www.rijksoverheid.nl/onderwerpen/arbeidsovereenkomst-en-cao/vraag-en-antwoord/koningsdag-27-april-vrije-dag
04-27 if sunday then previous saturday since 2014:
name:
nl: Koningsdag
en: King's Day
04-30 if sunday then next monday since 1949 and prior to 1980:
name:
nl: Koninginnedag
en: Queen's Day
04-30 if sunday then previous saturday since 1980 and prior to 2014:
name:
nl: Koninginnedag
en: Queen's Day
05-04:
name:
nl: Nationale Dodenherdenking
type: observance
# @source https://www.rijksoverheid.nl/onderwerpen/tweede-wereldoorlog/vraag-en-antwoord/bevrijdingsdag-5-mei-vrije-dag
# @source https://www.rijksoverheid.nl/onderwerpen/arbeidsovereenkomst-en-cao/vraag-en-antwoord/bevrijdingsdag-5-mei-vrije-dag
05-05:
name:
nl: Bevrijdingsdag
type: observance
en: Liberation Day
type: school
2nd sunday in May:
_name: Mothers Day
type: observance
3rd sunday in June:
_name: Fathers Day
type: observance
# @source https://www.rijksoverheid.nl/onderwerpen/arbeidsovereenkomst-en-cao/vraag-en-antwoord/hemelvaartsdag-vrije-dag
easter 39:
_name: easter 39
name:
nl: Hemelvaartsdag
easter 49:
_name: easter 49
# @source https://www.rijksoverheid.nl/onderwerpen/arbeidsovereenkomst-en-cao/vraag-en-antwoord/is-tweede-pinksterdag-een-vrije-dag
easter 50:
_name: easter 50
3rd sunday in June:
_name: Fathers Day
type: observance
08-31 since 1885 and prior to 1891:
name:
nl: Princessedag
en: Princess Day
08-31 since 1891 and prior to 1949:
name:
nl: Koninginnedag
en: Queen's Day
3rd tuesday in September:
name:
nl: Prinsjesdag
en: Prince's Day
note: Scholen in Den Haag geven meestal 1 dag vrij
type: observance
11-11:
Expand Down
8 changes: 4 additions & 4 deletions test/fixtures/NL-2015.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "2015-04-02T22:00:00.000Z",
"end": "2015-04-03T22:00:00.000Z",
"name": "Goede Vrijdag",
"type": "public",
"type": "school",
"rule": "easter -2",
"_weekday": "Fri"
},
Expand Down Expand Up @@ -41,7 +41,7 @@
"end": "2015-04-27T22:00:00.000Z",
"name": "Koningsdag",
"type": "public",
"rule": "04-27 if sunday then previous saturday",
"rule": "04-27 if sunday then previous saturday since 2014",
"_weekday": "Mon"
},
{
Expand All @@ -58,7 +58,7 @@
"start": "2015-05-04T22:00:00.000Z",
"end": "2015-05-05T22:00:00.000Z",
"name": "Bevrijdingsdag",
"type": "observance",
"type": "school",
"rule": "05-05",
"_weekday": "Tue"
},
Expand All @@ -75,7 +75,7 @@
"date": "2015-05-14 00:00:00",
"start": "2015-05-13T22:00:00.000Z",
"end": "2015-05-14T22:00:00.000Z",
"name": "O.L.H. Hemelvaart",
"name": "Hemelvaartsdag",
"type": "public",
"rule": "easter 39",
"_weekday": "Thu"
Expand Down
8 changes: 4 additions & 4 deletions test/fixtures/NL-2016.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "2016-03-24T23:00:00.000Z",
"end": "2016-03-25T23:00:00.000Z",
"name": "Goede Vrijdag",
"type": "public",
"type": "school",
"rule": "easter -2",
"_weekday": "Fri"
},
Expand Down Expand Up @@ -41,7 +41,7 @@
"end": "2016-04-27T22:00:00.000Z",
"name": "Koningsdag",
"type": "public",
"rule": "04-27 if sunday then previous saturday",
"rule": "04-27 if sunday then previous saturday since 2014",
"_weekday": "Wed"
},
{
Expand All @@ -58,15 +58,15 @@
"start": "2016-05-04T22:00:00.000Z",
"end": "2016-05-05T22:00:00.000Z",
"name": "Bevrijdingsdag",
"type": "observance",
"type": "school",
"rule": "05-05",
"_weekday": "Thu"
},
{
"date": "2016-05-05 00:00:00",
"start": "2016-05-04T22:00:00.000Z",
"end": "2016-05-05T22:00:00.000Z",
"name": "O.L.H. Hemelvaart",
"name": "Hemelvaartsdag",
"type": "public",
"rule": "easter 39",
"_weekday": "Thu"
Expand Down
8 changes: 4 additions & 4 deletions test/fixtures/NL-2017.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "2017-04-13T22:00:00.000Z",
"end": "2017-04-14T22:00:00.000Z",
"name": "Goede Vrijdag",
"type": "public",
"type": "school",
"rule": "easter -2",
"_weekday": "Fri"
},
Expand Down Expand Up @@ -41,7 +41,7 @@
"end": "2017-04-27T22:00:00.000Z",
"name": "Koningsdag",
"type": "public",
"rule": "04-27 if sunday then previous saturday",
"rule": "04-27 if sunday then previous saturday since 2014",
"_weekday": "Thu"
},
{
Expand All @@ -58,7 +58,7 @@
"start": "2017-05-04T22:00:00.000Z",
"end": "2017-05-05T22:00:00.000Z",
"name": "Bevrijdingsdag",
"type": "observance",
"type": "school",
"rule": "05-05",
"_weekday": "Fri"
},
Expand All @@ -75,7 +75,7 @@
"date": "2017-05-25 00:00:00",
"start": "2017-05-24T22:00:00.000Z",
"end": "2017-05-25T22:00:00.000Z",
"name": "O.L.H. Hemelvaart",
"name": "Hemelvaartsdag",
"type": "public",
"rule": "easter 39",
"_weekday": "Thu"
Expand Down
8 changes: 4 additions & 4 deletions test/fixtures/NL-2018.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "2018-03-29T22:00:00.000Z",
"end": "2018-03-30T22:00:00.000Z",
"name": "Goede Vrijdag",
"type": "public",
"type": "school",
"rule": "easter -2",
"_weekday": "Fri"
},
Expand Down Expand Up @@ -41,7 +41,7 @@
"end": "2018-04-27T22:00:00.000Z",
"name": "Koningsdag",
"type": "public",
"rule": "04-27 if sunday then previous saturday",
"rule": "04-27 if sunday then previous saturday since 2014",
"_weekday": "Fri"
},
{
Expand All @@ -58,15 +58,15 @@
"start": "2018-05-04T22:00:00.000Z",
"end": "2018-05-05T22:00:00.000Z",
"name": "Bevrijdingsdag",
"type": "observance",
"type": "school",
"rule": "05-05",
"_weekday": "Sat"
},
{
"date": "2018-05-10 00:00:00",
"start": "2018-05-09T22:00:00.000Z",
"end": "2018-05-10T22:00:00.000Z",
"name": "O.L.H. Hemelvaart",
"name": "Hemelvaartsdag",
"type": "public",
"rule": "easter 39",
"_weekday": "Thu"
Expand Down
8 changes: 4 additions & 4 deletions test/fixtures/NL-2019.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "2019-04-18T22:00:00.000Z",
"end": "2019-04-19T22:00:00.000Z",
"name": "Goede Vrijdag",
"type": "public",
"type": "school",
"rule": "easter -2",
"_weekday": "Fri"
},
Expand Down Expand Up @@ -41,7 +41,7 @@
"end": "2019-04-27T22:00:00.000Z",
"name": "Koningsdag",
"type": "public",
"rule": "04-27 if sunday then previous saturday",
"rule": "04-27 if sunday then previous saturday since 2014",
"_weekday": "Sat"
},
{
Expand All @@ -58,7 +58,7 @@
"start": "2019-05-04T22:00:00.000Z",
"end": "2019-05-05T22:00:00.000Z",
"name": "Bevrijdingsdag",
"type": "observance",
"type": "school",
"rule": "05-05",
"_weekday": "Sun"
},
Expand All @@ -75,7 +75,7 @@
"date": "2019-05-30 00:00:00",
"start": "2019-05-29T22:00:00.000Z",
"end": "2019-05-30T22:00:00.000Z",
"name": "O.L.H. Hemelvaart",
"name": "Hemelvaartsdag",
"type": "public",
"rule": "easter 39",
"_weekday": "Thu"
Expand Down
8 changes: 4 additions & 4 deletions test/fixtures/NL-2020.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "2020-04-09T22:00:00.000Z",
"end": "2020-04-10T22:00:00.000Z",
"name": "Goede Vrijdag",
"type": "public",
"type": "school",
"rule": "easter -2",
"_weekday": "Fri"
},
Expand Down Expand Up @@ -41,7 +41,7 @@
"end": "2020-04-27T22:00:00.000Z",
"name": "Koningsdag",
"type": "public",
"rule": "04-27 if sunday then previous saturday",
"rule": "04-27 if sunday then previous saturday since 2014",
"_weekday": "Mon"
},
{
Expand All @@ -58,7 +58,7 @@
"start": "2020-05-04T22:00:00.000Z",
"end": "2020-05-05T22:00:00.000Z",
"name": "Bevrijdingsdag",
"type": "observance",
"type": "school",
"rule": "05-05",
"_weekday": "Tue"
},
Expand All @@ -75,7 +75,7 @@
"date": "2020-05-21 00:00:00",
"start": "2020-05-20T22:00:00.000Z",
"end": "2020-05-21T22:00:00.000Z",
"name": "O.L.H. Hemelvaart",
"name": "Hemelvaartsdag",
"type": "public",
"rule": "easter 39",
"_weekday": "Thu"
Expand Down
8 changes: 4 additions & 4 deletions test/fixtures/NL-2021.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "2021-04-01T22:00:00.000Z",
"end": "2021-04-02T22:00:00.000Z",
"name": "Goede Vrijdag",
"type": "public",
"type": "school",
"rule": "easter -2",
"_weekday": "Fri"
},
Expand Down Expand Up @@ -41,7 +41,7 @@
"end": "2021-04-27T22:00:00.000Z",
"name": "Koningsdag",
"type": "public",
"rule": "04-27 if sunday then previous saturday",
"rule": "04-27 if sunday then previous saturday since 2014",
"_weekday": "Tue"
},
{
Expand All @@ -58,7 +58,7 @@
"start": "2021-05-04T22:00:00.000Z",
"end": "2021-05-05T22:00:00.000Z",
"name": "Bevrijdingsdag",
"type": "observance",
"type": "school",
"rule": "05-05",
"_weekday": "Wed"
},
Expand All @@ -75,7 +75,7 @@
"date": "2021-05-13 00:00:00",
"start": "2021-05-12T22:00:00.000Z",
"end": "2021-05-13T22:00:00.000Z",
"name": "O.L.H. Hemelvaart",
"name": "Hemelvaartsdag",
"type": "public",
"rule": "easter 39",
"_weekday": "Thu"
Expand Down
8 changes: 4 additions & 4 deletions test/fixtures/NL-2022.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "2022-04-14T22:00:00.000Z",
"end": "2022-04-15T22:00:00.000Z",
"name": "Goede Vrijdag",
"type": "public",
"type": "school",
"rule": "easter -2",
"_weekday": "Fri"
},
Expand Down Expand Up @@ -41,7 +41,7 @@
"end": "2022-04-27T22:00:00.000Z",
"name": "Koningsdag",
"type": "public",
"rule": "04-27 if sunday then previous saturday",
"rule": "04-27 if sunday then previous saturday since 2014",
"_weekday": "Wed"
},
{
Expand All @@ -58,7 +58,7 @@
"start": "2022-05-04T22:00:00.000Z",
"end": "2022-05-05T22:00:00.000Z",
"name": "Bevrijdingsdag",
"type": "observance",
"type": "school",
"rule": "05-05",
"_weekday": "Thu"
},
Expand All @@ -75,7 +75,7 @@
"date": "2022-05-26 00:00:00",
"start": "2022-05-25T22:00:00.000Z",
"end": "2022-05-26T22:00:00.000Z",
"name": "O.L.H. Hemelvaart",
"name": "Hemelvaartsdag",
"type": "public",
"rule": "easter 39",
"_weekday": "Thu"
Expand Down
Loading