forked from holidays/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
es.yaml
495 lines (494 loc) · 10.7 KB
/
es.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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
# Spanish holiday definitions for the Ruby Holiday gem.
#
# Including the Balearic Islands and the Canary Islands.
#
# Updated: 2008-11-29.
#
# Sources:
# - http://en.wikipedia.org/wiki/Public_holidays_in_Spain
# - http://www.timeanddate.com/calendar/index.html?country=16
#
# Notes:
# - Valencia is encoded as both es_v and es_vc
months:
0:
- name: Jueves Santo
regions: [es_pv, es_na, es_an, es_ib, es_cm, es_mu, es_m, es_ar, es_cl, es_cn, es_lo, es_ga, es_ce, es_o, es_ex]
function: easter(year)
function_modifier: -3
- name: Viernes Santo
regions: [es]
function: easter(year)
function_modifier: -2
- name: Lunes de Pascua
regions: [es_pv, es_ct, es_na, es_v, es_vc]
function: easter(year)
function_modifier: 1
- name: Lunes de Pascua Granada
regions: [es_ct]
function: easter(year)
function_modifier: 50
1:
- name: Año Nuevo
regions: [es]
mday: 1
observed: to_monday_if_sunday(date)
- name: Día de Reyes
regions: [es]
mday: 6
observed: to_monday_if_sunday(date)
2:
- name: Día de Andalucía
regions: [es_an]
mday: 28
observed: to_monday_if_sunday(date)
3:
- name: Día de las Islas Baleares
regions: [es_ib]
mday: 1
observed: to_monday_if_sunday(date)
- name: San José
regions: [es_v, es_vc, es_cm, es_mu, es_m]
mday: 19
observed: to_monday_if_sunday(date)
4:
- name: Día de Castilla y León
regions: [es_cl]
mday: 23
observed: to_monday_if_sunday(date)
- name: San Jorge, Día de Aragón
regions: [es_ar]
mday: 23
observed: to_monday_if_sunday(date)
5:
- name: Día del Trabajador
regions: [es]
mday: 1
observed: to_monday_if_sunday(date)
- name: Fiesta de la Comunidad
regions: [es_m]
mday: 2
observed: to_monday_if_sunday(date)
- name: Día de las Canarias
regions: [es_cn]
mday: 30
observed: to_monday_if_sunday(date)
- name: Día de la Región Castilla-La Mancha
regions: [es_cm]
mday: 31
observed: to_monday_if_sunday(date)
6:
- name: Día de la Región de Murcia
regions: [es_mu]
mday: 9
observed: to_monday_if_sunday(date)
- name: Día de La Rioja
regions: [es_lo]
mday: 9
observed: to_monday_if_sunday(date)
- name: San Juan
regions: [es_ct, es_vc]
mday: 24
7:
- name: Santiago Apostol
regions: [es_ga]
mday: 23
observed: to_monday_if_sunday(date)
8:
- name: Asunción
regions: [es]
mday: 15
observed: to_monday_if_sunday(date)
9:
- name: Día de Ceuta
regions: [es_ce]
mday: 2
observed: to_monday_if_sunday(date)
- name: Día de Asturias
regions: [es_o]
mday: 8
observed: to_monday_if_sunday(date)
- name: Día de Extremadura
regions: [es_ex]
mday: 8
- name: Fiesta Nacional de Cataluña
regions: [es_ct]
mday: 11
observed: to_monday_if_sunday(date)
- name: La Mercè
regions: [es_ct]
mday: 24
10:
- name: Día de Valencia
regions: [es_vc, es_v]
mday: 9
observed: to_monday_if_sunday(date)
- name: Día de la Hispanidad
regions: [es]
mday: 12
observed: to_monday_if_sunday(date)
11:
- name: Todos los Santos
regions: [es]
mday: 1
observed: to_monday_if_sunday(date)
12:
- name: Día de la Constitución
regions: [es]
mday: 6
observed: to_monday_if_sunday(date)
- name: Inmaculada Concepción
regions: [es]
mday: 8
observed: to_monday_if_sunday(date)
- name: Navidad del Señor
regions: [es]
mday: 25
observed: to_monday_if_sunday(date)
- name: San Esteban
regions: [es_ib, es_ct]
mday: 26
observed: to_monday_if_sunday(date)
tests:
- given:
date: '2009-01-01'
regions: ["es"]
options: ["informal"]
expect:
name: "Año Nuevo"
- given:
date: '2009-01-06'
regions: ["es"]
options: ["informal"]
expect:
name: "Día de Reyes"
- given:
date: '2009-04-10'
regions: ["es"]
options: ["informal"]
expect:
name: "Viernes Santo"
- given:
date: '2009-05-01'
regions: ["es"]
options: ["informal"]
expect:
name: "Día del Trabajador"
- given:
date: '2009-08-15'
regions: ["es"]
options: ["informal"]
expect:
name: "Asunción"
- given:
date: '2009-10-12'
regions: ["es"]
options: ["informal"]
expect:
name: "Día de la Hispanidad"
- given:
date: '2009-11-01'
regions: ["es"]
options: ["informal"]
expect:
name: "Todos los Santos"
- given:
date: '2009-12-06'
regions: ["es"]
options: ["informal"]
expect:
name: "Día de la Constitución"
- given:
date: '2009-12-08'
regions: ["es"]
options: ["informal"]
expect:
name: "Inmaculada Concepción"
- given:
date: '2009-12-25'
regions: ["es"]
options: ["informal"]
expect:
name: "Navidad del Señor"
- given:
date: '2009-04-09'
regions: ["es_pv"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_na"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_an"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_ib"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_cm"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_mu"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_m"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_ar"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_cl"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_cn"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_lo"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_ga"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_ce"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_o"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_ex"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-09'
regions: ["es_"]
options: ["informal"]
expect:
name: "Jueves Santo"
- given:
date: '2009-04-13'
regions: ["es_pv"]
expect:
name: "Lunes de Pascua"
- given:
date: '2009-04-13'
regions: ["es_ct"]
expect:
name: "Lunes de Pascua"
- given:
date: '2009-04-13'
regions: ["es_na"]
expect:
name: "Lunes de Pascua"
- given:
date: '2009-04-13'
regions: ["es_v"]
expect:
name: "Lunes de Pascua"
- given:
date: '2009-04-13'
regions: ["es_vc"]
expect:
name: "Lunes de Pascua"
- given:
date: '2009-04-13'
regions: ["es_"]
expect:
name: "Lunes de Pascua"
- given:
date: '2009-04-09'
regions: ["es_an"]
expect:
name: "Jueves Santo"
- given:
date: '2009-03-19'
regions: ["es_v"]
expect:
name: "San José"
- given:
date: '2009-03-19'
regions: ["es_vc"]
expect:
name: "San José"
- given:
date: '2009-03-19'
regions: ["es_cm"]
expect:
name: "San José"
- given:
date: '2009-03-19'
regions: ["es_mu"]
expect:
name: "San José"
- given:
date: '2009-03-19'
regions: ["es_m"]
expect:
name: "San José"
- given:
date: '2009-03-19'
regions: ["es_"]
expect:
name: "San José"
- given:
date: '2009-04-23'
regions: ["es_cl"]
expect:
name: "Día de Castilla y León"
- given:
date: '2009-04-23'
regions: ["es_ar"]
expect:
name: "San Jorge, Día de Aragón"
- given:
date: '2009-04-23'
regions: ["es_"]
expect:
name: "Día de Castilla y León"
- given:
date: '2009-10-09'
regions: ["es_vc"]
expect:
name: "Día de Valencia"
- given:
date: '2009-10-09'
regions: ["es_v"]
expect:
name: "Día de Valencia"
- given:
date: '2009-10-09'
regions: ["es_"]
expect:
name: "Día de Valencia"
- given:
date: '2009-12-26'
regions: ["es_ib"]
expect:
name: "San Esteban"
- given:
date: '2009-12-26'
regions: ["es_ct"]
expect:
name: "San Esteban"
- given:
date: '2009-12-26'
regions: ["es_"]
expect:
name: "San Esteban"
- given:
date: '2012-01-01'
regions: ["es"]
expect:
name: "Año Nuevo"
- given:
date: '2012-01-02'
regions: ["es"]
options: ["observed"]
expect:
name: "Año Nuevo"
- given:
date: '2009-02-28'
regions: ["es_an"]
expect:
name: "Día de Andalucía"
- given:
date: '2009-03-01'
regions: ["es_ib"]
expect:
name: "Día de las Islas Baleares"
- given:
date: '2006-05-02'
regions: ["es_m"]
expect:
name: "Fiesta de la Comunidad"
- given:
date: '2006-05-30'
regions: ["es_cn"]
expect:
name: "Día de las Canarias"
- given:
date: '2009-05-31'
regions: ["es_cm"]
expect:
name: "Día de la Región Castilla-La Mancha"
- given:
date: '2009-06-09'
regions: ["es_mu"]
expect:
name: "Día de la Región de Murcia"
- given:
date: '2009-06-09'
regions: ["es_lo"]
expect:
name: "Día de La Rioja"
- given:
date: '2009-07-23'
regions: ["es_ga"]
expect:
name: "Santiago Apostol"
- given:
date: '2009-09-02'
regions: ["es_ce"]
expect:
name: "Día de Ceuta"
- given:
date: '2009-09-08'
regions: ["es_o"]
expect:
name: "Día de Asturias"
- given:
date: '2009-09-08'
regions: ["es_ex"]
expect:
name: "Día de Extremadura"
- given:
date: '2009-09-11'
regions: ["es_ct"]
expect:
name: "Fiesta Nacional de Cataluña"
- given:
date: '2020-06-01'
regions: ["es_ct"]
expect:
name: "Lunes de Pascua Granada"