forked from TandaHQ/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
it.yaml
126 lines (125 loc) · 2.39 KB
/
it.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# Italian holiday definitions for the Ruby Holiday gem.
#
# Updated: 2008-11-23.
# Sources:
# - http://en.wikipedia.org/wiki/Holidays_in_Italy
---
months:
0:
- name: Pasqua
regions: [it]
function: easter(year)
- name: Lunedì dell'Angelo
regions: [it]
function: easter(year)
function_modifier: 1
1:
- name: Capodanno
regions: [it]
mday: 1
- name: Epifania
regions: [it]
mday: 6
4:
- name: Festa della Liberazione
regions: [it]
mday: 25
5:
- name: Festa dei Lavoratori
regions: [it]
mday: 1
6:
- name: Festa della Repubblica
regions: [it]
mday: 2
8:
- name: Assunzione
regions: [it]
mday: 15
11:
- name: Ognissanti
regions: [it]
mday: 1
12:
- name: Immacolata Concezione
regions: [it]
mday: 8
- name: Natale
regions: [it]
mday: 25
- name: Santo Stefano
regions: [it]
mday: 26
tests:
- given:
date: '2007-01-01'
regions: ["it"]
options: ["informal"]
expect:
name: "Capodanno"
- given:
date: '2007-01-06'
regions: ["it"]
options: ["informal"]
expect:
name: "Epifania"
- given:
date: '2007-04-08'
regions: ["it"]
options: ["informal"]
expect:
name: "Pasqua"
- given:
date: '2007-04-09'
regions: ["it"]
options: ["informal"]
expect:
name: "Lunedì dell'Angelo"
- given:
date: '2007-04-25'
regions: ["it"]
options: ["informal"]
expect:
name: "Festa della Liberazione"
- given:
date: '2007-05-01'
regions: ["it"]
options: ["informal"]
expect:
name: "Festa dei Lavoratori"
- given:
date: '2007-06-02'
regions: ["it"]
options: ["informal"]
expect:
name: "Festa della Repubblica"
- given:
date: '2007-08-15'
regions: ["it"]
options: ["informal"]
expect:
name: "Assunzione"
- given:
date: '2007-11-01'
regions: ["it"]
options: ["informal"]
expect:
name: "Ognissanti"
- given:
date: '2007-12-08'
regions: ["it"]
options: ["informal"]
expect:
name: "Immacolata Concezione"
- given:
date: '2007-12-25'
regions: ["it"]
options: ["informal"]
expect:
name: "Natale"
- given:
date: '2007-12-26'
regions: ["it"]
options: ["informal"]
expect:
name: "Santo Stefano"