Skip to content

Commit

Permalink
Merge pull request #252 from Seb735/feat-MF
Browse files Browse the repository at this point in the history
Feat (MF) Saint Martin
  • Loading branch information
commenthol authored May 30, 2021
2 parents e9c9399 + cb98c06 commit 0128ea4
Show file tree
Hide file tree
Showing 25 changed files with 2,642 additions and 10 deletions.
5 changes: 5 additions & 0 deletions data/countries/FR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ holidays:
zones:
- Indian/Reunion
_days: RE
MF:
name: "Département et région d'outre-mer Saint Martin"
zones:
- America/Marigot
_days: MF
BL:
name: "Département et région d'outre-mer Saint Barthélemy"
zones:
Expand Down
10 changes: 0 additions & 10 deletions data/countries/MF.todo

This file was deleted.

19 changes: 19 additions & 0 deletions data/countries/MF.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# @source https://www.legisocial.fr/jours-feries.html
# @source http://www.saint-barth-saint-martin.gouv.fr/Vous-etes/Passeport?spl_f=N0/N19810/N103/N360#!/particuliers/page/F2405
holidays:
MF:
names:
en: St. Martin
fr: Saint Martin
langs:
- fr
zones:
- America/Marigot
dayoff: sunday
_days: FR
days:
easter 49: false
05-27:
name:
fr: Abolition de l'esclavage
en: abolition of slavery
119 changes: 119 additions & 0 deletions test/fixtures/FR-MF-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": "Nouvel An",
"type": "public",
"rule": "01-01",
"_weekday": "Thu"
},
{
"date": "2015-04-06 00:00:00",
"start": "2015-04-06T04:00:00.000Z",
"end": "2015-04-07T04:00:00.000Z",
"name": "Lundi de Pâques",
"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": "Fête du travail",
"type": "public",
"rule": "05-01",
"_weekday": "Fri"
},
{
"date": "2015-05-08 00:00:00",
"start": "2015-05-08T04:00:00.000Z",
"end": "2015-05-09T04:00:00.000Z",
"name": "Fête de la Victoire 1945",
"type": "public",
"rule": "05-08",
"_weekday": "Fri"
},
{
"date": "2015-05-14 00:00:00",
"start": "2015-05-14T04:00:00.000Z",
"end": "2015-05-15T04:00:00.000Z",
"name": "Ascension",
"type": "public",
"rule": "easter 39",
"_weekday": "Thu"
},
{
"date": "2015-05-25 00:00:00",
"start": "2015-05-25T04:00:00.000Z",
"end": "2015-05-26T04:00:00.000Z",
"name": "Lundi de Pentecôte",
"type": "public",
"rule": "easter 50",
"_weekday": "Mon"
},
{
"date": "2015-05-27 00:00:00",
"start": "2015-05-27T04:00:00.000Z",
"end": "2015-05-28T04:00:00.000Z",
"name": "Abolition de l'esclavage",
"type": "public",
"rule": "05-27",
"_weekday": "Wed"
},
{
"date": "2015-05-31 00:00:00",
"start": "2015-05-31T04:00:00.000Z",
"end": "2015-06-01T04:00:00.000Z",
"name": "Fête des Mères",
"type": "observance",
"rule": "sunday before 06-01",
"_weekday": "Sun"
},
{
"date": "2015-07-14 00:00:00",
"start": "2015-07-14T04:00:00.000Z",
"end": "2015-07-15T04:00:00.000Z",
"name": "Fête Nationale de la France",
"type": "public",
"rule": "07-14",
"_weekday": "Tue"
},
{
"date": "2015-08-15 00:00:00",
"start": "2015-08-15T04:00:00.000Z",
"end": "2015-08-16T04:00:00.000Z",
"name": "Assomption",
"type": "public",
"rule": "08-15",
"_weekday": "Sat"
},
{
"date": "2015-11-01 00:00:00",
"start": "2015-11-01T04:00:00.000Z",
"end": "2015-11-02T04:00:00.000Z",
"name": "Toussaint",
"type": "public",
"rule": "11-01",
"_weekday": "Sun"
},
{
"date": "2015-11-11 00:00:00",
"start": "2015-11-11T04:00:00.000Z",
"end": "2015-11-12T04:00:00.000Z",
"name": "Armistice 1918",
"type": "public",
"rule": "11-11",
"_weekday": "Wed"
},
{
"date": "2015-12-25 00:00:00",
"start": "2015-12-25T04:00:00.000Z",
"end": "2015-12-26T04:00:00.000Z",
"name": "Noël",
"type": "public",
"rule": "12-25",
"_weekday": "Fri"
}
]
119 changes: 119 additions & 0 deletions test/fixtures/FR-MF-2016.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
[
{
"date": "2016-01-01 00:00:00",
"start": "2016-01-01T04:00:00.000Z",
"end": "2016-01-02T04:00:00.000Z",
"name": "Nouvel An",
"type": "public",
"rule": "01-01",
"_weekday": "Fri"
},
{
"date": "2016-03-28 00:00:00",
"start": "2016-03-28T04:00:00.000Z",
"end": "2016-03-29T04:00:00.000Z",
"name": "Lundi de Pâques",
"type": "public",
"rule": "easter 1",
"_weekday": "Mon"
},
{
"date": "2016-05-01 00:00:00",
"start": "2016-05-01T04:00:00.000Z",
"end": "2016-05-02T04:00:00.000Z",
"name": "Fête du travail",
"type": "public",
"rule": "05-01",
"_weekday": "Sun"
},
{
"date": "2016-05-05 00:00:00",
"start": "2016-05-05T04:00:00.000Z",
"end": "2016-05-06T04:00:00.000Z",
"name": "Ascension",
"type": "public",
"rule": "easter 39",
"_weekday": "Thu"
},
{
"date": "2016-05-08 00:00:00",
"start": "2016-05-08T04:00:00.000Z",
"end": "2016-05-09T04:00:00.000Z",
"name": "Fête de la Victoire 1945",
"type": "public",
"rule": "05-08",
"_weekday": "Sun"
},
{
"date": "2016-05-16 00:00:00",
"start": "2016-05-16T04:00:00.000Z",
"end": "2016-05-17T04:00:00.000Z",
"name": "Lundi de Pentecôte",
"type": "public",
"rule": "easter 50",
"_weekday": "Mon"
},
{
"date": "2016-05-27 00:00:00",
"start": "2016-05-27T04:00:00.000Z",
"end": "2016-05-28T04:00:00.000Z",
"name": "Abolition de l'esclavage",
"type": "public",
"rule": "05-27",
"_weekday": "Fri"
},
{
"date": "2016-05-29 00:00:00",
"start": "2016-05-29T04:00:00.000Z",
"end": "2016-05-30T04:00:00.000Z",
"name": "Fête des Mères",
"type": "observance",
"rule": "sunday before 06-01",
"_weekday": "Sun"
},
{
"date": "2016-07-14 00:00:00",
"start": "2016-07-14T04:00:00.000Z",
"end": "2016-07-15T04:00:00.000Z",
"name": "Fête Nationale de la France",
"type": "public",
"rule": "07-14",
"_weekday": "Thu"
},
{
"date": "2016-08-15 00:00:00",
"start": "2016-08-15T04:00:00.000Z",
"end": "2016-08-16T04:00:00.000Z",
"name": "Assomption",
"type": "public",
"rule": "08-15",
"_weekday": "Mon"
},
{
"date": "2016-11-01 00:00:00",
"start": "2016-11-01T04:00:00.000Z",
"end": "2016-11-02T04:00:00.000Z",
"name": "Toussaint",
"type": "public",
"rule": "11-01",
"_weekday": "Tue"
},
{
"date": "2016-11-11 00:00:00",
"start": "2016-11-11T04:00:00.000Z",
"end": "2016-11-12T04:00:00.000Z",
"name": "Armistice 1918",
"type": "public",
"rule": "11-11",
"_weekday": "Fri"
},
{
"date": "2016-12-25 00:00:00",
"start": "2016-12-25T04:00:00.000Z",
"end": "2016-12-26T04:00:00.000Z",
"name": "Noël",
"type": "public",
"rule": "12-25",
"_weekday": "Sun"
}
]
Loading

0 comments on commit 0128ea4

Please sign in to comment.