forked from holidays/definitions
-
Notifications
You must be signed in to change notification settings - Fork 5
/
mx.yaml
150 lines (149 loc) · 2.91 KB
/
mx.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
# Mexican holiday definitions for the Ruby Holiday gem.
# Updated 2008-12-05.
# Sources:
# - http://www.britishembassy.gov.uk/servlet/Front?pagename=OpenMarket/Xcelerate/ShowPage&c=Page&cid=1125561634963
# - http://www.usembassy-mexico.gov/eng/holidays.html
---
months:
1:
- name: Año nuevo
regions: [mx]
mday: 1
- name: Dia de los Santos Reyes
regions: [mx]
mday: 6
2:
- name: Día de la Constitución
week: 1
regions: [mx]
wday: 1
3:
- name: Natalicio de Benito Juárez
week: 3
regions: [mx]
wday: 1
4:
- name: Día del Niño
regions: [mx]
mday: 30
type: informal
5:
- name: Día del Trabajo
regions: [mx]
mday: 1
- name: Cinco de Mayo
regions: [mx]
mday: 5
type: informal
- name: La Batalla de Puebla
regions: [mx_pue]
mday: 5
- name: Día de la Madre
regions: [mx]
mday: 10
type: informal
- name: Día del Maestro
regions: [mx]
mday: 15
type: informal
6:
- name: Día del Padre
regions: [mx]
wday: 0
week: 3
type: informal
9:
- name: Grito de Dolores
regions: [mx]
mday: 15
- name: Día de la Independencia
regions: [mx]
mday: 16
10:
- name: Día de la Raza
regions: [mx]
mday: 12
type: informal
11:
- name: Todos los Santos
regions: [mx]
mday: 1
type: informal
- name: Los Fieles Difuntos
regions: [mx]
mday: 2
type: informal
- name: Día de la Revolución
week: 3
regions: [mx]
wday: 1
12:
- name: Día de la Virgen de Guadalupe
regions: [mx]
mday: 12
type: informal
- name: Nochebuena
regions: [mx]
mday: 24
type: informal
- name: Navidad
regions: [mx]
mday: 25
- name: Los Santos Inocentes
regions: [mx]
mday: 28
tests:
- given:
date: '2007-01-01'
regions: ["mx"]
options: ["informal"]
expect:
name: "Año nuevo"
- given:
date: '2007-02-05'
regions: ["mx"]
options: ["informal"]
expect:
name: "Día de la Constitución"
- given:
date: '2007-05-01'
regions: ["mx"]
options: ["informal"]
expect:
name: "Día del Trabajo"
- given:
date: '2007-05-05'
regions: ["mx"]
options: ["informal"]
expect:
name: "Cinco de Mayo"
- given:
date: '2007-09-16'
regions: ["mx"]
options: ["informal"]
expect:
name: "Día de la Independencia"
- given:
date: '2007-11-01'
regions: ["mx"]
options: ["informal"]
expect:
name: "Todos los Santos"
- given:
date: '2007-11-02'
regions: ["mx"]
options: ["informal"]
expect:
name: "Los Fieles Difuntos"
- given:
date: '2007-11-19'
regions: ["mx"]
options: ["informal"]
expect:
name: "Día de la Revolución"
- given:
date: '2007-12-25'
regions: ["mx"]
options: ["informal"]
expect:
name: "Navidad"