Skip to content

Commit

Permalink
Merge pull request #443 from diegoholiveira/master
Browse files Browse the repository at this point in the history
Add black conscience day as a regional holiday (SP only)
  • Loading branch information
commenthol authored Dec 10, 2023
2 parents 853297c + 8689366 commit c2841d5
Show file tree
Hide file tree
Showing 19 changed files with 172 additions and 0 deletions.
10 changes: 10 additions & 0 deletions data/countries/BR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ holidays:
pt: Revolução Constitucionalista
active:
- from: 1997-03-05
11-20:
name:
pt: Dia da Consciência Negra
active:
- from: 2023-09-12
regions:
SP:
name: São Paulo
Expand All @@ -471,6 +476,11 @@ holidays:
pt: Aniversário da Cidade
en: City Birthday
type: public
11-20:
name:
pt: Dia da Consciência Negra
active:
- from: 2004-01-07
TO:
name: Tocantins
zones:
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-2023.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,15 @@
"rule": "11-15",
"_weekday": "Wed"
},
{
"date": "2023-11-20 00:00:00",
"start": "2023-11-20T03:00:00.000Z",
"end": "2023-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Mon"
},
{
"date": "2023-12-24 14:00:00",
"start": "2023-12-24T17:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-2024.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@
"rule": "11-15",
"_weekday": "Fri"
},
{
"date": "2024-11-20 00:00:00",
"start": "2024-11-20T03:00:00.000Z",
"end": "2024-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Wed"
},
{
"date": "2024-12-24 14:00:00",
"start": "2024-12-24T17:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-2025.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,15 @@
"rule": "11-15",
"_weekday": "Sat"
},
{
"date": "2025-11-20 00:00:00",
"start": "2025-11-20T03:00:00.000Z",
"end": "2025-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Thu"
},
{
"date": "2025-12-24 14:00:00",
"start": "2025-12-24T17:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-2026.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@
"rule": "11-15",
"_weekday": "Sun"
},
{
"date": "2026-11-20 00:00:00",
"start": "2026-11-20T03:00:00.000Z",
"end": "2026-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Fri"
},
{
"date": "2026-12-24 14:00:00",
"start": "2026-12-24T17:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-2027.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,15 @@
"rule": "11-15",
"_weekday": "Mon"
},
{
"date": "2027-11-20 00:00:00",
"start": "2027-11-20T03:00:00.000Z",
"end": "2027-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Sat"
},
{
"date": "2027-12-24 14:00:00",
"start": "2027-12-24T17:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-SP-2015.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@
"rule": "11-15",
"_weekday": "Sun"
},
{
"date": "2015-11-20 00:00:00",
"start": "2015-11-20T02:00:00.000Z",
"end": "2015-11-21T02:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Fri"
},
{
"date": "2015-12-24 14:00:00",
"start": "2015-12-24T16:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-SP-2016.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@
"rule": "11-15",
"_weekday": "Tue"
},
{
"date": "2016-11-20 00:00:00",
"start": "2016-11-20T02:00:00.000Z",
"end": "2016-11-21T02:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Sun"
},
{
"date": "2016-12-24 14:00:00",
"start": "2016-12-24T16:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-SP-2017.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@
"rule": "11-15",
"_weekday": "Wed"
},
{
"date": "2017-11-20 00:00:00",
"start": "2017-11-20T02:00:00.000Z",
"end": "2017-11-21T02:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Mon"
},
{
"date": "2017-12-24 14:00:00",
"start": "2017-12-24T16:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-SP-2018.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@
"rule": "11-15",
"_weekday": "Thu"
},
{
"date": "2018-11-20 00:00:00",
"start": "2018-11-20T02:00:00.000Z",
"end": "2018-11-21T02:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Tue"
},
{
"date": "2018-12-24 14:00:00",
"start": "2018-12-24T16:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-SP-2019.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@
"rule": "11-15",
"_weekday": "Fri"
},
{
"date": "2019-11-20 00:00:00",
"start": "2019-11-20T03:00:00.000Z",
"end": "2019-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Wed"
},
{
"date": "2019-12-24 14:00:00",
"start": "2019-12-24T17:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-SP-2020.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@
"rule": "11-15",
"_weekday": "Sun"
},
{
"date": "2020-11-20 00:00:00",
"start": "2020-11-20T03:00:00.000Z",
"end": "2020-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Fri"
},
{
"date": "2020-12-24 14:00:00",
"start": "2020-12-24T17:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-SP-2021.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@
"rule": "11-15",
"_weekday": "Mon"
},
{
"date": "2021-11-20 00:00:00",
"start": "2021-11-20T03:00:00.000Z",
"end": "2021-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Sat"
},
{
"date": "2021-12-24 14:00:00",
"start": "2021-12-24T17:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-SP-2022.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@
"rule": "11-15",
"_weekday": "Tue"
},
{
"date": "2022-11-20 00:00:00",
"start": "2022-11-20T03:00:00.000Z",
"end": "2022-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Sun"
},
{
"date": "2022-12-24 14:00:00",
"start": "2022-12-24T17:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-SP-2023.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@
"rule": "11-15",
"_weekday": "Wed"
},
{
"date": "2023-11-20 00:00:00",
"start": "2023-11-20T03:00:00.000Z",
"end": "2023-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Mon"
},
{
"date": "2023-12-24 14:00:00",
"start": "2023-12-24T17:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-SP-2024.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@
"rule": "11-15",
"_weekday": "Fri"
},
{
"date": "2024-11-20 00:00:00",
"start": "2024-11-20T03:00:00.000Z",
"end": "2024-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Wed"
},
{
"date": "2024-12-24 14:00:00",
"start": "2024-12-24T17:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-SP-2025.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@
"rule": "11-15",
"_weekday": "Sat"
},
{
"date": "2025-11-20 00:00:00",
"start": "2025-11-20T03:00:00.000Z",
"end": "2025-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Thu"
},
{
"date": "2025-12-24 14:00:00",
"start": "2025-12-24T17:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-SP-2026.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@
"rule": "11-15",
"_weekday": "Sun"
},
{
"date": "2026-11-20 00:00:00",
"start": "2026-11-20T03:00:00.000Z",
"end": "2026-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Fri"
},
{
"date": "2026-12-24 14:00:00",
"start": "2026-12-24T17:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/BR-SP-SP-2027.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@
"rule": "11-15",
"_weekday": "Mon"
},
{
"date": "2027-11-20 00:00:00",
"start": "2027-11-20T03:00:00.000Z",
"end": "2027-11-21T03:00:00.000Z",
"name": "Dia da Consciência Negra",
"type": "public",
"rule": "11-20",
"_weekday": "Sat"
},
{
"date": "2027-12-24 14:00:00",
"start": "2027-12-24T17:00:00.000Z",
Expand Down

0 comments on commit c2841d5

Please sign in to comment.