Skip to content
Open
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
58 changes: 57 additions & 1 deletion data/countries/ES.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ holidays:
# @source https://www.boe.es/boe/dias/2023/10/27/pdfs/BOE-A-2023-22014.pdf (2024)
# @source https://www.boe.es/boe/dias/2024/10/18/pdfs/BOE-A-2024-21316.pdf (2025)
# @source https://www.boe.es/boe/dias/2025/10/28/pdfs/BOE-A-2025-21667.pdf (2026)
# @source https://www.boe.es/boe/dias/2026/10/13/pdfs/BOE-A-2026-21254.pdf (2027)
# @source https://www.boe.es/buscar/doc.php?id=BOE-A-2021-17113
# @source https://www.boe.es/buscar/act.php?id=BOE-A-1983-20906#art45
# buscar: "la relación de fiestas laborales para el año 20xx"
Expand Down Expand Up @@ -156,16 +157,39 @@ holidays:
days:
easter -3:
_name: easter -3
06-28:
disable:
- "2018-03-29"
07-28:
name: Día de las Instituciones de Cantabria
09-15:
name: La Bien Aparecida
substitutes 09-15 if Sunday then next Monday:
name: La Bien Aparecida
disable:
- "2019-09-16"
- "2024-09-16"
substitutes 12-06 if sunday then next monday:
substitute: true
name:
es: Día de la Constitución Española
disable:
- "2020-12-07"
# Days chosen in years when other regional days fall on a Sunday
2019-04-22:
_name: easter 1
2020-04-13:
_name: easter 1
2024-04-01:
_name: easter 1
2019-07-25:
name:
es: Santiago Apóstol
2024-07-25:
name:
es: Santiago Apóstol
2019-12-09:
substitute: true
_name: 12-08
CE:
name: Ciudad de Ceuta
days:
Expand Down Expand Up @@ -417,6 +441,8 @@ holidays:
days:
03-19:
_name: 03-19
disable:
- "2022-03-19"
easter -3:
_name: easter -3
substitutes 05-01 if Sunday then next Monday:
Expand All @@ -426,6 +452,23 @@ holidays:
substitute: true
name:
es: Día de la Constitución Española
06-09:
name:
es: Día de la Región de Murcia
disable:
- "2019-06-09"
enable:
- "2019-06-10"
# Days chosen in years when other regional days fall on a Sunday
2019-01-07:
substitute: true
_name: 01-06
2023-01-02:
substitute: true
_name: 01-01
2024-12-09:
substitute: true
_name: 12-08
MD:
name: Comunidad de Madrid
days:
Expand Down Expand Up @@ -524,3 +567,16 @@ holidays:
name:
es: San Juan
ca: Sant Joan
disable:
- "2027-06-24"
10-09:
name:
es: Día de la Comunitat Valenciana
ca: Dia de la Comunitat Valenciana
substitutes 12-25 if sunday then next monday:
substitute: true
_name: 12-25
disable:
- "2022-12-26"
2022-04-14:
_name: easter -3
10 changes: 5 additions & 5 deletions test/fixtures/ES-CB-2015.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@
"_weekday": "Sun"
},
{
"date": "2015-06-28 00:00:00",
"start": "2015-06-27T22:00:00.000Z",
"end": "2015-06-28T22:00:00.000Z",
"date": "2015-07-28 00:00:00",
"start": "2015-07-27T22:00:00.000Z",
"end": "2015-07-28T22:00:00.000Z",
"name": "Día de las Instituciones de Cantabria",
"type": "public",
"rule": "06-28",
"_weekday": "Sun"
"rule": "07-28",
"_weekday": "Tue"
},
{
"date": "2015-08-15 00:00:00",
Expand Down
10 changes: 5 additions & 5 deletions test/fixtures/ES-CB-2016.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@
"_weekday": "Sun"
},
{
"date": "2016-06-28 00:00:00",
"start": "2016-06-27T22:00:00.000Z",
"end": "2016-06-28T22:00:00.000Z",
"date": "2016-07-28 00:00:00",
"start": "2016-07-27T22:00:00.000Z",
"end": "2016-07-28T22:00:00.000Z",
"name": "Día de las Instituciones de Cantabria",
"type": "public",
"rule": "06-28",
"_weekday": "Tue"
"rule": "07-28",
"_weekday": "Thu"
},
{
"date": "2016-08-15 00:00:00",
Expand Down
10 changes: 5 additions & 5 deletions test/fixtures/ES-CB-2017.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@
"_weekday": "Sun"
},
{
"date": "2017-06-28 00:00:00",
"start": "2017-06-27T22:00:00.000Z",
"end": "2017-06-28T22:00:00.000Z",
"date": "2017-07-28 00:00:00",
"start": "2017-07-27T22:00:00.000Z",
"end": "2017-07-28T22:00:00.000Z",
"name": "Día de las Instituciones de Cantabria",
"type": "public",
"rule": "06-28",
"_weekday": "Wed"
"rule": "07-28",
"_weekday": "Fri"
},
{
"date": "2017-08-15 00:00:00",
Expand Down
19 changes: 5 additions & 14 deletions test/fixtures/ES-CB-2018.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,6 @@
"rule": "03-19",
"_weekday": "Mon"
},
{
"date": "2018-03-29 00:00:00",
"start": "2018-03-28T22:00:00.000Z",
"end": "2018-03-29T22:00:00.000Z",
"name": "Jueves Santo",
"type": "public",
"rule": "easter -3",
"_weekday": "Thu"
},
{
"date": "2018-03-30 00:00:00",
"start": "2018-03-29T22:00:00.000Z",
Expand Down Expand Up @@ -81,13 +72,13 @@
"_weekday": "Sun"
},
{
"date": "2018-06-28 00:00:00",
"start": "2018-06-27T22:00:00.000Z",
"end": "2018-06-28T22:00:00.000Z",
"date": "2018-07-28 00:00:00",
"start": "2018-07-27T22:00:00.000Z",
"end": "2018-07-28T22:00:00.000Z",
"name": "Día de las Instituciones de Cantabria",
"type": "public",
"rule": "06-28",
"_weekday": "Thu"
"rule": "07-28",
"_weekday": "Sat"
},
{
"date": "2018-08-15 00:00:00",
Expand Down
46 changes: 32 additions & 14 deletions test/fixtures/ES-CB-2019.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@
"rule": "easter",
"_weekday": "Sun"
},
{
"date": "2019-04-22 00:00:00",
"start": "2019-04-21T22:00:00.000Z",
"end": "2019-04-22T22:00:00.000Z",
"name": "Lunes de Pascua",
"type": "public",
"rule": "2019-04-22",
"_weekday": "Mon"
},
{
"date": "2019-05-01 00:00:00",
"start": "2019-04-30T22:00:00.000Z",
Expand Down Expand Up @@ -91,13 +100,22 @@
"_weekday": "Sun"
},
{
"date": "2019-06-28 00:00:00",
"start": "2019-06-27T22:00:00.000Z",
"end": "2019-06-28T22:00:00.000Z",
"date": "2019-07-25 00:00:00",
"start": "2019-07-24T22:00:00.000Z",
"end": "2019-07-25T22:00:00.000Z",
"name": "Santiago Apóstol",
"type": "public",
"rule": "2019-07-25",
"_weekday": "Thu"
},
{
"date": "2019-07-28 00:00:00",
"start": "2019-07-27T22:00:00.000Z",
"end": "2019-07-28T22:00:00.000Z",
"name": "Día de las Instituciones de Cantabria",
"type": "public",
"rule": "06-28",
"_weekday": "Fri"
"rule": "07-28",
"_weekday": "Sun"
},
{
"date": "2019-08-15 00:00:00",
Expand All @@ -117,15 +135,6 @@
"rule": "09-15",
"_weekday": "Sun"
},
{
"date": "2019-09-16 00:00:00",
"start": "2019-09-15T22:00:00.000Z",
"end": "2019-09-16T22:00:00.000Z",
"name": "La Bien Aparecida",
"type": "public",
"rule": "substitutes 09-15 if Sunday then next Monday",
"_weekday": "Mon"
},
{
"date": "2019-10-12 00:00:00",
"start": "2019-10-11T22:00:00.000Z",
Expand Down Expand Up @@ -162,6 +171,15 @@
"rule": "12-08",
"_weekday": "Sun"
},
{
"date": "2019-12-09 00:00:00",
"start": "2019-12-08T23:00:00.000Z",
"end": "2019-12-09T23:00:00.000Z",
"name": "La inmaculada concepción",
"type": "public",
"rule": "2019-12-09",
"_weekday": "Mon"
},
{
"date": "2019-12-09 00:00:00",
"start": "2019-12-08T23:00:00.000Z",
Expand Down
29 changes: 14 additions & 15 deletions test/fixtures/ES-CB-2020.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@
"rule": "easter",
"_weekday": "Sun"
},
{
"date": "2020-04-13 00:00:00",
"start": "2020-04-12T22:00:00.000Z",
"end": "2020-04-13T22:00:00.000Z",
"name": "Lunes de Pascua",
"type": "public",
"rule": "2020-04-13",
"_weekday": "Mon"
},
{
"date": "2020-05-01 00:00:00",
"start": "2020-04-30T22:00:00.000Z",
Expand Down Expand Up @@ -81,13 +90,13 @@
"_weekday": "Sun"
},
{
"date": "2020-06-28 00:00:00",
"start": "2020-06-27T22:00:00.000Z",
"end": "2020-06-28T22:00:00.000Z",
"date": "2020-07-28 00:00:00",
"start": "2020-07-27T22:00:00.000Z",
"end": "2020-07-28T22:00:00.000Z",
"name": "Día de las Instituciones de Cantabria",
"type": "public",
"rule": "06-28",
"_weekday": "Sun"
"rule": "07-28",
"_weekday": "Tue"
},
{
"date": "2020-08-15 00:00:00",
Expand Down Expand Up @@ -134,16 +143,6 @@
"rule": "12-06",
"_weekday": "Sun"
},
{
"date": "2020-12-07 00:00:00",
"start": "2020-12-06T23:00:00.000Z",
"end": "2020-12-07T23:00:00.000Z",
"name": "Día de la Constitución Española (día sustituto)",
"type": "public",
"substitute": true,
"rule": "substitutes 12-06 if sunday then next monday",
"_weekday": "Mon"
},
{
"date": "2020-12-08 00:00:00",
"start": "2020-12-07T23:00:00.000Z",
Expand Down
10 changes: 5 additions & 5 deletions test/fixtures/ES-CB-2021.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@
"_weekday": "Sun"
},
{
"date": "2021-06-28 00:00:00",
"start": "2021-06-27T22:00:00.000Z",
"end": "2021-06-28T22:00:00.000Z",
"date": "2021-07-28 00:00:00",
"start": "2021-07-27T22:00:00.000Z",
"end": "2021-07-28T22:00:00.000Z",
"name": "Día de las Instituciones de Cantabria",
"type": "public",
"rule": "06-28",
"_weekday": "Mon"
"rule": "07-28",
"_weekday": "Wed"
},
{
"date": "2021-08-15 00:00:00",
Expand Down
10 changes: 5 additions & 5 deletions test/fixtures/ES-CB-2022.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@
"_weekday": "Sun"
},
{
"date": "2022-06-28 00:00:00",
"start": "2022-06-27T22:00:00.000Z",
"end": "2022-06-28T22:00:00.000Z",
"date": "2022-07-28 00:00:00",
"start": "2022-07-27T22:00:00.000Z",
"end": "2022-07-28T22:00:00.000Z",
"name": "Día de las Instituciones de Cantabria",
"type": "public",
"rule": "06-28",
"_weekday": "Tue"
"rule": "07-28",
"_weekday": "Thu"
},
{
"date": "2022-08-15 00:00:00",
Expand Down
10 changes: 5 additions & 5 deletions test/fixtures/ES-CB-2023.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@
"_weekday": "Sun"
},
{
"date": "2023-06-28 00:00:00",
"start": "2023-06-27T22:00:00.000Z",
"end": "2023-06-28T22:00:00.000Z",
"date": "2023-07-28 00:00:00",
"start": "2023-07-27T22:00:00.000Z",
"end": "2023-07-28T22:00:00.000Z",
"name": "Día de las Instituciones de Cantabria",
"type": "public",
"rule": "06-28",
"_weekday": "Wed"
"rule": "07-28",
"_weekday": "Fri"
},
{
"date": "2023-08-15 00:00:00",
Expand Down
Loading