Skip to content

Commit

Permalink
feat(TC): new country Turks & Caicos Islands
Browse files Browse the repository at this point in the history
  • Loading branch information
commenthol committed Aug 26, 2021
1 parent 11899d4 commit f7c81ec
Show file tree
Hide file tree
Showing 15 changed files with 1,445 additions and 9 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ https://en.wikipedia.org/wiki/Public_holidays_in_the_Czech_Republic
https://en.wikipedia.org/wiki/Public_holidays_in_the_Dominican_Republic
https://en.wikipedia.org/wiki/Public_holidays_in_the_Netherlands
https://en.wikipedia.org/wiki/Public_holidays_in_the_Philippines
https://en.wikipedia.org/wiki/Public_holidays_in_the_Turks_and_Caicos_Islands
https://en.wikipedia.org/wiki/Public_holidays_in_the_United_Arab_Emirates
https://en.wikipedia.org/wiki/Public_holidays_in_the_United_States
https://en.wikipedia.org/wiki/Public_holidays_in_the_United_States#Guam
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ Countries: 169
├── SV: El Salvador
│ └── SS: San Salvador
├── SX: Sint Maarten
├── TC: Turks & Caicos Islands
├── TD: جمهورية تشاد
├── TG: République togolaise
├── TN: الجمهورية التونسية
Expand Down
9 changes: 0 additions & 9 deletions data/countries/TC.todo

This file was deleted.

47 changes: 47 additions & 0 deletions data/countries/TC.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# @attrib https://en.wikipedia.org/wiki/Public_holidays_in_the_Turks_and_Caicos_Islands
holidays:
TC:
names:
en: Turks & Caicos Islands
langs:
- en
zones:
- America/Grand_Turk
dayoff: sunday
days:
01-01 and if Saturday, Sunday then next Monday:
_name: 01-01
2nd Monday in March:
name:
en: Commonwealth Day
easter -2:
_name: easter -2
easter:
_name: easter
type: observance
easter 1:
_name: easter 1
1st Monday before 06-01:
name:
en: National Heroes' Day
2nd Monday after 06-02:
name:
en: Queen's Birthday
1st Monday in August:
name:
en: Emancipation Day
1st Friday before 10-01:
name:
en: National Youth Day
2nd Monday in October:
name:
en: National Heritage Day
4th Friday in November:
name:
en: National Day of Thanksgiving
12-25 and if Saturday then next Monday if Sunday then next Tuesday:
substitute: true
_name: 12-25
12-26 and if Saturday then next Monday if Sunday then next Tuesday:
substitute: true
_name: 12-26
129 changes: 129 additions & 0 deletions test/fixtures/TC-2015.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
[
{
"date": "2015-01-01 00:00:00",
"start": "2015-01-01T05:00:00.000Z",
"end": "2015-01-02T05:00:00.000Z",
"name": "New Year's Day",
"type": "public",
"rule": "01-01 and if Saturday, Sunday then next Monday",
"_weekday": "Thu"
},
{
"date": "2015-03-09 00:00:00",
"start": "2015-03-09T04:00:00.000Z",
"end": "2015-03-10T04:00:00.000Z",
"name": "Commonwealth Day",
"type": "public",
"rule": "2nd Monday in March",
"_weekday": "Mon"
},
{
"date": "2015-04-03 00:00:00",
"start": "2015-04-03T04:00:00.000Z",
"end": "2015-04-04T04:00:00.000Z",
"name": "Good Friday",
"type": "public",
"rule": "easter -2",
"_weekday": "Fri"
},
{
"date": "2015-04-05 00:00:00",
"start": "2015-04-05T04:00:00.000Z",
"end": "2015-04-06T04:00:00.000Z",
"name": "Easter Sunday",
"type": "observance",
"rule": "easter",
"_weekday": "Sun"
},
{
"date": "2015-04-06 00:00:00",
"start": "2015-04-06T04:00:00.000Z",
"end": "2015-04-07T04:00:00.000Z",
"name": "Easter Monday",
"type": "public",
"rule": "easter 1",
"_weekday": "Mon"
},
{
"date": "2015-05-25 00:00:00",
"start": "2015-05-25T04:00:00.000Z",
"end": "2015-05-26T04:00:00.000Z",
"name": "National Heroes' Day",
"type": "public",
"rule": "1st Monday before 06-01",
"_weekday": "Mon"
},
{
"date": "2015-06-15 00:00:00",
"start": "2015-06-15T04:00:00.000Z",
"end": "2015-06-16T04:00:00.000Z",
"name": "Queen's Birthday",
"type": "public",
"rule": "2nd Monday after 06-02",
"_weekday": "Mon"
},
{
"date": "2015-08-03 00:00:00",
"start": "2015-08-03T04:00:00.000Z",
"end": "2015-08-04T04:00:00.000Z",
"name": "Emancipation Day",
"type": "public",
"rule": "1st Monday in August",
"_weekday": "Mon"
},
{
"date": "2015-09-25 00:00:00",
"start": "2015-09-25T04:00:00.000Z",
"end": "2015-09-26T04:00:00.000Z",
"name": "National Youth Day",
"type": "public",
"rule": "1st Friday before 10-01",
"_weekday": "Fri"
},
{
"date": "2015-10-12 00:00:00",
"start": "2015-10-12T04:00:00.000Z",
"end": "2015-10-13T04:00:00.000Z",
"name": "National Heritage Day",
"type": "public",
"rule": "2nd Monday in October",
"_weekday": "Mon"
},
{
"date": "2015-11-27 00:00:00",
"start": "2015-11-27T04:00:00.000Z",
"end": "2015-11-28T04:00:00.000Z",
"name": "National Day of Thanksgiving",
"type": "public",
"rule": "4th Friday in November",
"_weekday": "Fri"
},
{
"date": "2015-12-25 00:00:00",
"start": "2015-12-25T04:00:00.000Z",
"end": "2015-12-26T04:00:00.000Z",
"name": "Christmas Day",
"type": "public",
"rule": "12-25 and if Saturday then next Monday if Sunday then next Tuesday",
"_weekday": "Fri"
},
{
"date": "2015-12-26 00:00:00",
"start": "2015-12-26T04:00:00.000Z",
"end": "2015-12-27T04:00:00.000Z",
"name": "Boxing Day",
"type": "public",
"rule": "12-26 and if Saturday then next Monday if Sunday then next Tuesday",
"_weekday": "Sat"
},
{
"date": "2015-12-28 00:00:00",
"start": "2015-12-28T04:00:00.000Z",
"end": "2015-12-29T04:00:00.000Z",
"name": "Boxing Day (substitute day)",
"type": "public",
"substitute": true,
"rule": "12-26 and if Saturday then next Monday if Sunday then next Tuesday",
"_weekday": "Mon"
}
]
129 changes: 129 additions & 0 deletions test/fixtures/TC-2016.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
[
{
"date": "2016-01-01 00:00:00",
"start": "2016-01-01T04:00:00.000Z",
"end": "2016-01-02T04:00:00.000Z",
"name": "New Year's Day",
"type": "public",
"rule": "01-01 and if Saturday, Sunday then next Monday",
"_weekday": "Fri"
},
{
"date": "2016-03-14 00:00:00",
"start": "2016-03-14T04:00:00.000Z",
"end": "2016-03-15T04:00:00.000Z",
"name": "Commonwealth Day",
"type": "public",
"rule": "2nd Monday in March",
"_weekday": "Mon"
},
{
"date": "2016-03-25 00:00:00",
"start": "2016-03-25T04:00:00.000Z",
"end": "2016-03-26T04:00:00.000Z",
"name": "Good Friday",
"type": "public",
"rule": "easter -2",
"_weekday": "Fri"
},
{
"date": "2016-03-27 00:00:00",
"start": "2016-03-27T04:00:00.000Z",
"end": "2016-03-28T04:00:00.000Z",
"name": "Easter Sunday",
"type": "observance",
"rule": "easter",
"_weekday": "Sun"
},
{
"date": "2016-03-28 00:00:00",
"start": "2016-03-28T04:00:00.000Z",
"end": "2016-03-29T04:00:00.000Z",
"name": "Easter Monday",
"type": "public",
"rule": "easter 1",
"_weekday": "Mon"
},
{
"date": "2016-05-30 00:00:00",
"start": "2016-05-30T04:00:00.000Z",
"end": "2016-05-31T04:00:00.000Z",
"name": "National Heroes' Day",
"type": "public",
"rule": "1st Monday before 06-01",
"_weekday": "Mon"
},
{
"date": "2016-06-13 00:00:00",
"start": "2016-06-13T04:00:00.000Z",
"end": "2016-06-14T04:00:00.000Z",
"name": "Queen's Birthday",
"type": "public",
"rule": "2nd Monday after 06-02",
"_weekday": "Mon"
},
{
"date": "2016-08-01 00:00:00",
"start": "2016-08-01T04:00:00.000Z",
"end": "2016-08-02T04:00:00.000Z",
"name": "Emancipation Day",
"type": "public",
"rule": "1st Monday in August",
"_weekday": "Mon"
},
{
"date": "2016-09-30 00:00:00",
"start": "2016-09-30T04:00:00.000Z",
"end": "2016-10-01T04:00:00.000Z",
"name": "National Youth Day",
"type": "public",
"rule": "1st Friday before 10-01",
"_weekday": "Fri"
},
{
"date": "2016-10-10 00:00:00",
"start": "2016-10-10T04:00:00.000Z",
"end": "2016-10-11T04:00:00.000Z",
"name": "National Heritage Day",
"type": "public",
"rule": "2nd Monday in October",
"_weekday": "Mon"
},
{
"date": "2016-11-25 00:00:00",
"start": "2016-11-25T04:00:00.000Z",
"end": "2016-11-26T04:00:00.000Z",
"name": "National Day of Thanksgiving",
"type": "public",
"rule": "4th Friday in November",
"_weekday": "Fri"
},
{
"date": "2016-12-25 00:00:00",
"start": "2016-12-25T04:00:00.000Z",
"end": "2016-12-26T04:00:00.000Z",
"name": "Christmas Day",
"type": "public",
"rule": "12-25 and if Saturday then next Monday if Sunday then next Tuesday",
"_weekday": "Sun"
},
{
"date": "2016-12-26 00:00:00",
"start": "2016-12-26T04:00:00.000Z",
"end": "2016-12-27T04:00:00.000Z",
"name": "Boxing Day",
"type": "public",
"rule": "12-26 and if Saturday then next Monday if Sunday then next Tuesday",
"_weekday": "Mon"
},
{
"date": "2016-12-27 00:00:00",
"start": "2016-12-27T04:00:00.000Z",
"end": "2016-12-28T04:00:00.000Z",
"name": "Christmas Day (substitute day)",
"type": "public",
"substitute": true,
"rule": "12-25 and if Saturday then next Monday if Sunday then next Tuesday",
"_weekday": "Tue"
}
]
Loading

0 comments on commit f7c81ec

Please sign in to comment.