-
Notifications
You must be signed in to change notification settings - Fork 136
/
pe.yaml
208 lines (207 loc) · 4.17 KB
/
pe.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# Peruvian holiday definitions for the Ruby Holiday gem.
#
# created: 2016-06-18.
# updated: 2016-06-18.
#
# Sources:
# - http://www.timeanddate.com/holidays/peru/
# - https://en.wikipedia.org/wiki/Public_holidays_in_Peru
#
# Avoided days:
# March equinox
# June Solstice
# September equinox
# All soul's day
# December solstice
# Christmas eve
# Christmas day observed
# New year's eve
#
months:
0:
- name: Jueves Santo
regions: [pe]
function: easter(year)
function_modifier: -3
- name: Viernes Santo
regions: [pe]
function: easter(year)
function_modifier: -2
- name: Pascua
regions: [pe]
function: easter(year)
1:
- name: Año Nuevo
regions: [pe]
mday: 1
- name: Día de los Reyes Magos
regions: [pe]
mday: 6
observed: to_monday_if_sunday(date)
5:
- name: Día del Trabajador
regions: [pe]
mday: 1
- name: Día de la Madre
regions: [pe]
week: 2
wday: 0
type: informal
6:
- name: Día de la Bandera
regions: [pe]
mday: 7
type: informal
- name: Día del Padre
regions: [pe]
week: 3
wday: 0
type: informal
- name: Inti Raymi
regions: [pe]
mday: 24
type: informal
- name: San Pablo y San Pedro
regions: [pe]
mday: 29
7:
- name: Primer Día de la Independencia
regions: [pe]
mday: 28
- name: Segundo Día de la Independencia
regions: [pe]
mday: 29
8:
- name: Santa Rosa de Lima
regions: [pe]
mday: 30
9:
- name: Día de las Fuerzas Armadas
regions: [pe]
mday: 24
type: informal
10:
- name: Batalla de Angamos
regions: [pe]
mday: 8
11:
- name: Todos los Santos
regions: [pe]
mday: 1
12:
- name: Inmaculada Concepción
regions: [pe]
mday: 8
observed: to_monday_if_sunday(date)
- name: Navidad del Señor
regions: [pe]
mday: 25
tests:
- given:
date: '2016-01-01'
regions: ["pe"]
options: ["informal"]
expect:
name: "Año Nuevo"
- given:
date: '2016-01-06'
regions: ["pe"]
options: ["informal"]
expect:
name: "Día de los Reyes Magos"
- given:
date: '2016-03-24'
regions: ["pe"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2016-03-25'
regions: ["pe"]
options: ["informal"]
expect:
name: "Viernes Santo"
- given:
date: '2016-03-27'
regions: ["pe"]
options: ["informal"]
expect:
name: "Pascua"
- given:
date: '2016-05-01'
regions: ["pe"]
options: ["informal"]
expect:
name: "Día del Trabajador"
- given:
date: '2016-05-08'
regions: ["pe"]
options: ["informal"]
expect:
name: "Día de la Madre"
- given:
date: '2016-06-07'
regions: ["pe"]
options: ["informal"]
expect:
name: "Día de la Bandera"
- given:
date: '2016-06-19'
regions: ["pe"]
options: ["informal"]
expect:
name: "Día del Padre"
- given:
date: '2016-06-29'
regions: ["pe"]
options: ["informal"]
expect:
name: "San Pablo y San Pedro"
- given:
date: '2016-07-28'
regions: ["pe"]
options: ["informal"]
expect:
name: "Primer Día de la Independencia"
- given:
date: '2016-07-29'
regions: ["pe"]
options: ["informal"]
expect:
name: "Segundo Día de la Independencia"
- given:
date: '2016-08-30'
regions: ["pe"]
options: ["informal"]
expect:
name: "Santa Rosa de Lima"
- given:
date: '2016-09-24'
regions: ["pe"]
options: ["informal"]
expect:
name: "Día de las Fuerzas Armadas"
- given:
date: '2016-10-08'
regions: ["pe"]
options: ["informal"]
expect:
name: "Batalla de Angamos"
- given:
date: '2016-11-01'
regions: ["pe"]
options: ["informal"]
expect:
name: "Todos los Santos"
- given:
date: '2016-12-08'
regions: ["pe"]
options: ["informal"]
expect:
name: "Inmaculada Concepción"
- given:
date: '2016-12-25'
regions: ["pe"]
options: ["informal"]
expect:
name: "Navidad del Señor"