Skip to content

Commit

Permalink
fix(US): add Juneteenth ad public holiday
Browse files Browse the repository at this point in the history
  • Loading branch information
commenthol committed Jun 19, 2021
1 parent f719760 commit 89c6db9
Show file tree
Hide file tree
Showing 281 changed files with 3,646 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/countries/US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ holidays:
# @attrib https://en.wikipedia.org/wiki/Public_holidays_in_the_United_States
# @attrib https://en.wikipedia.org/wiki/Washington%27s_Birthday
# @source https://www4.law.cornell.edu/uscode/html/uscode05/usc_sec_05_00006103----000-.html
# @source https://uscode.house.gov/view.xhtml?edition=prelim&req=granuleid%3AUSC-prelim-title5-section6103&f=treesort&num=0
US:
names:
en: United States of America
Expand Down Expand Up @@ -70,6 +71,11 @@ holidays:
monday before 06-01:
name:
en: Memorial Day
06-19 and if sunday then next monday if saturday then previous friday since 2021:
# @source https://www.congress.gov/bill/117th-congress/senate-bill/475
substitute: true
name:
en: Juneteenth
3rd sunday in June:
_name: Fathers Day
type: observance
Expand Down
19 changes: 19 additions & 0 deletions test/fixtures/AS-2021.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,25 @@
"rule": "monday before 06-01",
"_weekday": "Mon"
},
{
"date": "2021-06-18 00:00:00",
"start": "2021-06-18T11:00:00.000Z",
"end": "2021-06-19T11:00:00.000Z",
"name": "Juneteenth (substitute day)",
"type": "public",
"substitute": true,
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Fri"
},
{
"date": "2021-06-19 00:00:00",
"start": "2021-06-19T11:00:00.000Z",
"end": "2021-06-20T11:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Sat"
},
{
"date": "2021-06-20 00:00:00",
"start": "2021-06-20T11:00:00.000Z",
Expand Down
19 changes: 19 additions & 0 deletions test/fixtures/AS-2022.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,25 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2022-06-19 00:00:00",
"start": "2022-06-19T11:00:00.000Z",
"end": "2022-06-20T11:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Sun"
},
{
"date": "2022-06-20 00:00:00",
"start": "2022-06-20T11:00:00.000Z",
"end": "2022-06-21T11:00:00.000Z",
"name": "Juneteenth (substitute day)",
"type": "public",
"substitute": true,
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Mon"
},
{
"date": "2022-07-04 00:00:00",
"start": "2022-07-04T11:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/AS-2023.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2023-06-19 00:00:00",
"start": "2023-06-19T11:00:00.000Z",
"end": "2023-06-20T11:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Mon"
},
{
"date": "2023-07-04 00:00:00",
"start": "2023-07-04T11:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/AS-2024.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2024-06-19 00:00:00",
"start": "2024-06-19T11:00:00.000Z",
"end": "2024-06-20T11:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Wed"
},
{
"date": "2024-07-04 00:00:00",
"start": "2024-07-04T11:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/AS-2025.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2025-06-19 00:00:00",
"start": "2025-06-19T11:00:00.000Z",
"end": "2025-06-20T11:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Thu"
},
{
"date": "2025-07-04 00:00:00",
"start": "2025-07-04T11:00:00.000Z",
Expand Down
19 changes: 19 additions & 0 deletions test/fixtures/GU-2021.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,25 @@
"rule": "monday before 06-01",
"_weekday": "Mon"
},
{
"date": "2021-06-18 00:00:00",
"start": "2021-06-17T14:00:00.000Z",
"end": "2021-06-18T14:00:00.000Z",
"name": "Juneteenth (substitute day)",
"type": "public",
"substitute": true,
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Fri"
},
{
"date": "2021-06-19 00:00:00",
"start": "2021-06-18T14:00:00.000Z",
"end": "2021-06-19T14:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Sat"
},
{
"date": "2021-06-20 00:00:00",
"start": "2021-06-19T14:00:00.000Z",
Expand Down
19 changes: 19 additions & 0 deletions test/fixtures/GU-2022.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,25 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2022-06-19 00:00:00",
"start": "2022-06-18T14:00:00.000Z",
"end": "2022-06-19T14:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Sun"
},
{
"date": "2022-06-20 00:00:00",
"start": "2022-06-19T14:00:00.000Z",
"end": "2022-06-20T14:00:00.000Z",
"name": "Juneteenth (substitute day)",
"type": "public",
"substitute": true,
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Mon"
},
{
"date": "2022-07-04 00:00:00",
"start": "2022-07-03T14:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/GU-2023.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2023-06-19 00:00:00",
"start": "2023-06-18T14:00:00.000Z",
"end": "2023-06-19T14:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Mon"
},
{
"date": "2023-07-04 00:00:00",
"start": "2023-07-03T14:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/GU-2024.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2024-06-19 00:00:00",
"start": "2024-06-18T14:00:00.000Z",
"end": "2024-06-19T14:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Wed"
},
{
"date": "2024-07-04 00:00:00",
"start": "2024-07-03T14:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/GU-2025.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2025-06-19 00:00:00",
"start": "2025-06-18T14:00:00.000Z",
"end": "2025-06-19T14:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Thu"
},
{
"date": "2025-07-04 00:00:00",
"start": "2025-07-03T14:00:00.000Z",
Expand Down
19 changes: 19 additions & 0 deletions test/fixtures/US-2021.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,25 @@
"rule": "monday before 06-01",
"_weekday": "Mon"
},
{
"date": "2021-06-18 00:00:00",
"start": "2021-06-18T04:00:00.000Z",
"end": "2021-06-19T04:00:00.000Z",
"name": "Juneteenth (substitute day)",
"type": "public",
"substitute": true,
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Fri"
},
{
"date": "2021-06-19 00:00:00",
"start": "2021-06-19T04:00:00.000Z",
"end": "2021-06-20T04:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Sat"
},
{
"date": "2021-06-20 00:00:00",
"start": "2021-06-20T04:00:00.000Z",
Expand Down
19 changes: 19 additions & 0 deletions test/fixtures/US-2022.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,25 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2022-06-19 00:00:00",
"start": "2022-06-19T04:00:00.000Z",
"end": "2022-06-20T04:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Sun"
},
{
"date": "2022-06-20 00:00:00",
"start": "2022-06-20T04:00:00.000Z",
"end": "2022-06-21T04:00:00.000Z",
"name": "Juneteenth (substitute day)",
"type": "public",
"substitute": true,
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Mon"
},
{
"date": "2022-07-04 00:00:00",
"start": "2022-07-04T04:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/US-2023.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2023-06-19 00:00:00",
"start": "2023-06-19T04:00:00.000Z",
"end": "2023-06-20T04:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Mon"
},
{
"date": "2023-07-04 00:00:00",
"start": "2023-07-04T04:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/US-2024.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2024-06-19 00:00:00",
"start": "2024-06-19T04:00:00.000Z",
"end": "2024-06-20T04:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Wed"
},
{
"date": "2024-07-04 00:00:00",
"start": "2024-07-04T04:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/US-2025.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2025-06-19 00:00:00",
"start": "2025-06-19T04:00:00.000Z",
"end": "2025-06-20T04:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Thu"
},
{
"date": "2025-07-04 00:00:00",
"start": "2025-07-04T04:00:00.000Z",
Expand Down
19 changes: 19 additions & 0 deletions test/fixtures/US-AK-2021.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,25 @@
"rule": "monday before 06-01",
"_weekday": "Mon"
},
{
"date": "2021-06-18 00:00:00",
"start": "2021-06-18T08:00:00.000Z",
"end": "2021-06-19T08:00:00.000Z",
"name": "Juneteenth (substitute day)",
"type": "public",
"substitute": true,
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Fri"
},
{
"date": "2021-06-19 00:00:00",
"start": "2021-06-19T08:00:00.000Z",
"end": "2021-06-20T08:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Sat"
},
{
"date": "2021-06-20 00:00:00",
"start": "2021-06-20T08:00:00.000Z",
Expand Down
19 changes: 19 additions & 0 deletions test/fixtures/US-AK-2022.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,25 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2022-06-19 00:00:00",
"start": "2022-06-19T08:00:00.000Z",
"end": "2022-06-20T08:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Sun"
},
{
"date": "2022-06-20 00:00:00",
"start": "2022-06-20T08:00:00.000Z",
"end": "2022-06-21T08:00:00.000Z",
"name": "Juneteenth (substitute day)",
"type": "public",
"substitute": true,
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Mon"
},
{
"date": "2022-07-04 00:00:00",
"start": "2022-07-04T08:00:00.000Z",
Expand Down
9 changes: 9 additions & 0 deletions test/fixtures/US-AK-2023.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@
"rule": "3rd sunday in June",
"_weekday": "Sun"
},
{
"date": "2023-06-19 00:00:00",
"start": "2023-06-19T08:00:00.000Z",
"end": "2023-06-20T08:00:00.000Z",
"name": "Juneteenth",
"type": "public",
"rule": "06-19 and if sunday then next monday if saturday then previous friday since 2021",
"_weekday": "Mon"
},
{
"date": "2023-07-04 00:00:00",
"start": "2023-07-04T08:00:00.000Z",
Expand Down
Loading

0 comments on commit 89c6db9

Please sign in to comment.