Skip to content

Commit

Permalink
feat(VC): new country Saint Vincent and the Grenadines
Browse files Browse the repository at this point in the history
  • Loading branch information
commenthol committed Aug 26, 2021
1 parent 45b2b46 commit 71db0b3
Show file tree
Hide file tree
Showing 15 changed files with 1,496 additions and 23 deletions.
3 changes: 3 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,12 @@ https://en.wikipedia.org/wiki/Public_holidays_in_Norway
https://en.wikipedia.org/wiki/Public_holidays_in_Panama
https://en.wikipedia.org/wiki/Public_holidays_in_Paraguay
https://en.wikipedia.org/wiki/Public_holidays_in_Peru
https://en.wikipedia.org/wiki/Public_holidays_in_Puerto_Rico
https://en.wikipedia.org/wiki/Public_holidays_in_Romania
https://en.wikipedia.org/wiki/Public_holidays_in_Russia
https://en.wikipedia.org/wiki/Public_holidays_in_Saint_Kitts_and_Nevis
https://en.wikipedia.org/wiki/Public_holidays_in_Saint_Lucia
https://en.wikipedia.org/wiki/Public_holidays_in_Saint_Vincent_and_the_Grenadines
https://en.wikipedia.org/wiki/Public_holidays_in_Serbia
https://en.wikipedia.org/wiki/Public_holidays_in_Singapore
https://en.wikipedia.org/wiki/Public_holidays_in_Sint_Maarten
Expand All @@ -117,6 +119,7 @@ https://en.wikipedia.org/wiki/Public_holidays_in_South_Sudan
https://en.wikipedia.org/wiki/Public_holidays_in_Taiwan
https://en.wikipedia.org/wiki/Public_holidays_in_Tanzania
https://en.wikipedia.org/wiki/Public_holidays_in_Togo
https://en.wikipedia.org/wiki/Public_holidays_in_Trinidad_and_Tobago
https://en.wikipedia.org/wiki/Public_holidays_in_Turkey
https://en.wikipedia.org/wiki/Public_holidays_in_Uganda
https://en.wikipedia.org/wiki/Public_holidays_in_Ukraine
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ If you are missing holidays from your country, state, region please consider
<!-- !tree -->

```
Countries: 169
Countries: 177
├── AD: Andorra
│ └── 07: Andorra la Vella
├── AE: دولة الإمارات العربية المتحدة
Expand Down Expand Up @@ -380,6 +380,7 @@ Countries: 169
├── PH: Philippines
├── PL: Polska
├── PM: St. Pierre & Miquelon
├── PR: Puerto Rico
├── PT: Portugal
├── PY: Paraguay
├── RE: Réunion
Expand Down Expand Up @@ -416,6 +417,7 @@ Countries: 169
├── TN: الجمهورية التونسية
├── TO: Puleʻanga Fakatuʻi ʻo Tonga
├── TR: Türkiye
├── TT: Trinidad & Tobago
├── TW: 中華民國
├── TZ: Tanzania
├── UA: Україна
Expand Down Expand Up @@ -476,6 +478,7 @@ Countries: 169
│ └── WY: Wyoming
├── UY: Uruguay
├── VA: Stato della Città del Vaticano
├── VC: St. Vincent & Grenadines
├── VE: Venezuela
│ ├── B: Anzoátegui
│ ├── G: Carabobo
Expand Down
22 changes: 0 additions & 22 deletions data/countries/VC.todo

This file was deleted.

70 changes: 70 additions & 0 deletions data/countries/VC.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# @attrib https://en.wikipedia.org/wiki/Public_holidays_in_Saint_Vincent_and_the_Grenadines
holidays:
VC:
names:
en: St. Vincent & Grenadines
langs:
- en
zones:
- America/Port_of_Spain
dayoff: sunday
days:
01-01 and if Sunday then next Monday:
substitute: true
_name: 01-01
03-14 and if Sunday then next Monday:
substitute: true
name:
en: National Hero′s Day
easter -2:
_name: easter -2
easter:
_name: easter
type: observance
easter 1:
_name: easter 1
05-01 and if Sunday then next Monday:
substitute: true
_name: 05-01
easter 50:
_name: easter 50
1st Monday in July:
name:
en: Carnival Monday
disable:
- '2021-06-05'
enable:
- '2021-09-06'
Tuesday after 1st Monday in July:
name:
en: Carnival Tuesday
disable:
- '2021-06-06'
enable:
- '2021-09-07'
08-01 and if Sunday then next Monday:
substitute: true
name:
en: Emancipation Day
10-27 and if Sunday then next Monday:
substitute: true
_name: Independence Day
12-25 and if Sunday then next Tuesday:
substitute: true
_name: 12-25
12-26 and if Sunday then next Monday:
substitute: true
_name: 12-26
# states:
# '01':
# name: Charlotte
# '02':
# name: Saint Andrew
# '03':
# name: Saint David
# '04':
# name: Saint George
# '05':
# name: Saint Patrick
# '06':
# name: Grenadines
119 changes: 119 additions & 0 deletions test/fixtures/VC-2015.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
[
{
"date": "2015-01-01 00:00:00",
"start": "2015-01-01T04:00:00.000Z",
"end": "2015-01-02T04:00:00.000Z",
"name": "New Year's Day",
"type": "public",
"rule": "01-01 and if Sunday then next Monday",
"_weekday": "Thu"
},
{
"date": "2015-03-14 00:00:00",
"start": "2015-03-14T04:00:00.000Z",
"end": "2015-03-15T04:00:00.000Z",
"name": "National Hero′s Day",
"type": "public",
"rule": "03-14 and if Sunday then next Monday",
"_weekday": "Sat"
},
{
"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-01 00:00:00",
"start": "2015-05-01T04:00:00.000Z",
"end": "2015-05-02T04:00:00.000Z",
"name": "Labour Day",
"type": "public",
"rule": "05-01 and if Sunday then next Monday",
"_weekday": "Fri"
},
{
"date": "2015-05-25 00:00:00",
"start": "2015-05-25T04:00:00.000Z",
"end": "2015-05-26T04:00:00.000Z",
"name": "Whit Monday",
"type": "public",
"rule": "easter 50",
"_weekday": "Mon"
},
{
"date": "2015-07-06 00:00:00",
"start": "2015-07-06T04:00:00.000Z",
"end": "2015-07-07T04:00:00.000Z",
"name": "Carnival Monday",
"type": "public",
"rule": "1st Monday in July",
"_weekday": "Mon"
},
{
"date": "2015-07-07 00:00:00",
"start": "2015-07-07T04:00:00.000Z",
"end": "2015-07-08T04:00:00.000Z",
"name": "Carnival Tuesday",
"type": "public",
"rule": "Tuesday after 1st Monday in July",
"_weekday": "Tue"
},
{
"date": "2015-08-01 00:00:00",
"start": "2015-08-01T04:00:00.000Z",
"end": "2015-08-02T04:00:00.000Z",
"name": "Emancipation Day",
"type": "public",
"rule": "08-01 and if Sunday then next Monday",
"_weekday": "Sat"
},
{
"date": "2015-10-27 00:00:00",
"start": "2015-10-27T04:00:00.000Z",
"end": "2015-10-28T04:00:00.000Z",
"name": "Independence Day",
"type": "public",
"rule": "10-27 and if Sunday then next Monday",
"_weekday": "Tue"
},
{
"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 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 Sunday then next Monday",
"_weekday": "Sat"
}
]
Loading

0 comments on commit 71db0b3

Please sign in to comment.