Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(IT): add Florence patron saint holiday #492

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions data/countries/IT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,24 @@ holidays:
# name: Reggio Emilia
# RN:
# name: Rimini
# '52':
# name: Tuscany
# regions:
"52":
name:
it: Toscana
en: Tuscany
regions:
FI:
name:
it: Firenze
en: Florence
days:
06-24:
name:
it: San Giovanni
en: Saint John
type: optional
note: patron saint of Florence
# AR:
# name: Arezzo
# FI:
# name: Florence
# GR:
# name: Grosseto
# LI:
Expand Down
119 changes: 119 additions & 0 deletions test/fixtures/IT-52-2015.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
[
{
"date": "2015-01-01 00:00:00",
"start": "2014-12-31T23:00:00.000Z",
"end": "2015-01-01T23:00:00.000Z",
"name": "Capodanno",
"type": "public",
"rule": "01-01",
"_weekday": "Thu"
},
{
"date": "2015-01-06 00:00:00",
"start": "2015-01-05T23:00:00.000Z",
"end": "2015-01-06T23:00:00.000Z",
"name": "Befana",
"type": "public",
"rule": "01-06",
"_weekday": "Tue"
},
{
"date": "2015-04-05 00:00:00",
"start": "2015-04-04T22:00:00.000Z",
"end": "2015-04-05T22:00:00.000Z",
"name": "Domenica di Pasqua",
"type": "public",
"rule": "easter",
"_weekday": "Sun"
},
{
"date": "2015-04-06 00:00:00",
"start": "2015-04-05T22:00:00.000Z",
"end": "2015-04-06T22:00:00.000Z",
"name": "Lunedì dell’Angelo",
"type": "public",
"rule": "easter 1",
"_weekday": "Mon"
},
{
"date": "2015-04-25 00:00:00",
"start": "2015-04-24T22:00:00.000Z",
"end": "2015-04-25T22:00:00.000Z",
"name": "Anniversario della Liberazione",
"type": "public",
"rule": "04-25",
"_weekday": "Sat"
},
{
"date": "2015-05-01 00:00:00",
"start": "2015-04-30T22:00:00.000Z",
"end": "2015-05-01T22:00:00.000Z",
"name": "Festa del Lavoro",
"type": "public",
"rule": "05-01",
"_weekday": "Fri"
},
{
"date": "2015-05-10 00:00:00",
"start": "2015-05-09T22:00:00.000Z",
"end": "2015-05-10T22:00:00.000Z",
"name": "Festa della mamma",
"type": "observance",
"rule": "2nd sunday in May",
"_weekday": "Sun"
},
{
"date": "2015-06-02 00:00:00",
"start": "2015-06-01T22:00:00.000Z",
"end": "2015-06-02T22:00:00.000Z",
"name": "Festa della Repubblica",
"type": "public",
"rule": "06-02",
"_weekday": "Tue"
},
{
"date": "2015-08-15 00:00:00",
"start": "2015-08-14T22:00:00.000Z",
"end": "2015-08-15T22:00:00.000Z",
"name": "Ferragosto",
"type": "public",
"rule": "08-15",
"_weekday": "Sat"
},
{
"date": "2015-11-01 00:00:00",
"start": "2015-10-31T23:00:00.000Z",
"end": "2015-11-01T23:00:00.000Z",
"name": "Ognissanti",
"type": "public",
"rule": "11-01",
"_weekday": "Sun"
},
{
"date": "2015-12-08 00:00:00",
"start": "2015-12-07T23:00:00.000Z",
"end": "2015-12-08T23:00:00.000Z",
"name": "Immacolata Concezione",
"type": "public",
"rule": "12-08",
"_weekday": "Tue"
},
{
"date": "2015-12-25 00:00:00",
"start": "2015-12-24T23:00:00.000Z",
"end": "2015-12-25T23:00:00.000Z",
"name": "Natale",
"type": "public",
"rule": "12-25",
"_weekday": "Fri"
},
{
"date": "2015-12-26 00:00:00",
"start": "2015-12-25T23:00:00.000Z",
"end": "2015-12-26T23:00:00.000Z",
"name": "Santo Stefano",
"type": "public",
"rule": "12-26",
"_weekday": "Sat"
}
]
119 changes: 119 additions & 0 deletions test/fixtures/IT-52-2016.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
[
{
"date": "2016-01-01 00:00:00",
"start": "2015-12-31T23:00:00.000Z",
"end": "2016-01-01T23:00:00.000Z",
"name": "Capodanno",
"type": "public",
"rule": "01-01",
"_weekday": "Fri"
},
{
"date": "2016-01-06 00:00:00",
"start": "2016-01-05T23:00:00.000Z",
"end": "2016-01-06T23:00:00.000Z",
"name": "Befana",
"type": "public",
"rule": "01-06",
"_weekday": "Wed"
},
{
"date": "2016-03-27 00:00:00",
"start": "2016-03-26T23:00:00.000Z",
"end": "2016-03-27T22:00:00.000Z",
"name": "Domenica di Pasqua",
"type": "public",
"rule": "easter",
"_weekday": "Sun"
},
{
"date": "2016-03-28 00:00:00",
"start": "2016-03-27T22:00:00.000Z",
"end": "2016-03-28T22:00:00.000Z",
"name": "Lunedì dell’Angelo",
"type": "public",
"rule": "easter 1",
"_weekday": "Mon"
},
{
"date": "2016-04-25 00:00:00",
"start": "2016-04-24T22:00:00.000Z",
"end": "2016-04-25T22:00:00.000Z",
"name": "Anniversario della Liberazione",
"type": "public",
"rule": "04-25",
"_weekday": "Mon"
},
{
"date": "2016-05-01 00:00:00",
"start": "2016-04-30T22:00:00.000Z",
"end": "2016-05-01T22:00:00.000Z",
"name": "Festa del Lavoro",
"type": "public",
"rule": "05-01",
"_weekday": "Sun"
},
{
"date": "2016-05-08 00:00:00",
"start": "2016-05-07T22:00:00.000Z",
"end": "2016-05-08T22:00:00.000Z",
"name": "Festa della mamma",
"type": "observance",
"rule": "2nd sunday in May",
"_weekday": "Sun"
},
{
"date": "2016-06-02 00:00:00",
"start": "2016-06-01T22:00:00.000Z",
"end": "2016-06-02T22:00:00.000Z",
"name": "Festa della Repubblica",
"type": "public",
"rule": "06-02",
"_weekday": "Thu"
},
{
"date": "2016-08-15 00:00:00",
"start": "2016-08-14T22:00:00.000Z",
"end": "2016-08-15T22:00:00.000Z",
"name": "Ferragosto",
"type": "public",
"rule": "08-15",
"_weekday": "Mon"
},
{
"date": "2016-11-01 00:00:00",
"start": "2016-10-31T23:00:00.000Z",
"end": "2016-11-01T23:00:00.000Z",
"name": "Ognissanti",
"type": "public",
"rule": "11-01",
"_weekday": "Tue"
},
{
"date": "2016-12-08 00:00:00",
"start": "2016-12-07T23:00:00.000Z",
"end": "2016-12-08T23:00:00.000Z",
"name": "Immacolata Concezione",
"type": "public",
"rule": "12-08",
"_weekday": "Thu"
},
{
"date": "2016-12-25 00:00:00",
"start": "2016-12-24T23:00:00.000Z",
"end": "2016-12-25T23:00:00.000Z",
"name": "Natale",
"type": "public",
"rule": "12-25",
"_weekday": "Sun"
},
{
"date": "2016-12-26 00:00:00",
"start": "2016-12-25T23:00:00.000Z",
"end": "2016-12-26T23:00:00.000Z",
"name": "Santo Stefano",
"type": "public",
"rule": "12-26",
"_weekday": "Mon"
}
]
119 changes: 119 additions & 0 deletions test/fixtures/IT-52-2017.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
[
{
"date": "2017-01-01 00:00:00",
"start": "2016-12-31T23:00:00.000Z",
"end": "2017-01-01T23:00:00.000Z",
"name": "Capodanno",
"type": "public",
"rule": "01-01",
"_weekday": "Sun"
},
{
"date": "2017-01-06 00:00:00",
"start": "2017-01-05T23:00:00.000Z",
"end": "2017-01-06T23:00:00.000Z",
"name": "Befana",
"type": "public",
"rule": "01-06",
"_weekday": "Fri"
},
{
"date": "2017-04-16 00:00:00",
"start": "2017-04-15T22:00:00.000Z",
"end": "2017-04-16T22:00:00.000Z",
"name": "Domenica di Pasqua",
"type": "public",
"rule": "easter",
"_weekday": "Sun"
},
{
"date": "2017-04-17 00:00:00",
"start": "2017-04-16T22:00:00.000Z",
"end": "2017-04-17T22:00:00.000Z",
"name": "Lunedì dell’Angelo",
"type": "public",
"rule": "easter 1",
"_weekday": "Mon"
},
{
"date": "2017-04-25 00:00:00",
"start": "2017-04-24T22:00:00.000Z",
"end": "2017-04-25T22:00:00.000Z",
"name": "Anniversario della Liberazione",
"type": "public",
"rule": "04-25",
"_weekday": "Tue"
},
{
"date": "2017-05-01 00:00:00",
"start": "2017-04-30T22:00:00.000Z",
"end": "2017-05-01T22:00:00.000Z",
"name": "Festa del Lavoro",
"type": "public",
"rule": "05-01",
"_weekday": "Mon"
},
{
"date": "2017-05-14 00:00:00",
"start": "2017-05-13T22:00:00.000Z",
"end": "2017-05-14T22:00:00.000Z",
"name": "Festa della mamma",
"type": "observance",
"rule": "2nd sunday in May",
"_weekday": "Sun"
},
{
"date": "2017-06-02 00:00:00",
"start": "2017-06-01T22:00:00.000Z",
"end": "2017-06-02T22:00:00.000Z",
"name": "Festa della Repubblica",
"type": "public",
"rule": "06-02",
"_weekday": "Fri"
},
{
"date": "2017-08-15 00:00:00",
"start": "2017-08-14T22:00:00.000Z",
"end": "2017-08-15T22:00:00.000Z",
"name": "Ferragosto",
"type": "public",
"rule": "08-15",
"_weekday": "Tue"
},
{
"date": "2017-11-01 00:00:00",
"start": "2017-10-31T23:00:00.000Z",
"end": "2017-11-01T23:00:00.000Z",
"name": "Ognissanti",
"type": "public",
"rule": "11-01",
"_weekday": "Wed"
},
{
"date": "2017-12-08 00:00:00",
"start": "2017-12-07T23:00:00.000Z",
"end": "2017-12-08T23:00:00.000Z",
"name": "Immacolata Concezione",
"type": "public",
"rule": "12-08",
"_weekday": "Fri"
},
{
"date": "2017-12-25 00:00:00",
"start": "2017-12-24T23:00:00.000Z",
"end": "2017-12-25T23:00:00.000Z",
"name": "Natale",
"type": "public",
"rule": "12-25",
"_weekday": "Mon"
},
{
"date": "2017-12-26 00:00:00",
"start": "2017-12-25T23:00:00.000Z",
"end": "2017-12-26T23:00:00.000Z",
"name": "Santo Stefano",
"type": "public",
"rule": "12-26",
"_weekday": "Tue"
}
]
Loading