-
Notifications
You must be signed in to change notification settings - Fork 136
/
pt.yaml
187 lines (186 loc) · 3.98 KB
/
pt.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
# Portugese holiday definitions for the Ruby Holiday gem.
#
# Updated: 2014-03-01.
# Sources:
# - http://thomasallen.home.sapo.pt/travel/hols.htm
# - http://en.wikipedia.org/wiki/Holidays_in_Portugal
# - http://www.kidlink.org/KIDPROJ/MCC/mcc0006.html
# - http://www.worldtravelguide.net/country/227/public_holidays/Europe/Portugal.html
# - http://en.wikipedia.org/wiki/Portugal_Day
# - http://www.timeanddate.com/calendar/custom.html?year=2008&country=15
# - http://en.wikipedia.org/wiki/Public_holidays_in_Portugal
#
# Changes 2017-05-31:
# - Add additional holidays for Porto (pt_po) and Lisbon (pt_li)
---
months:
0:
- name: Carnaval # same as Shrove Tuesday
regions: [pt]
function: easter(year)
function_modifier: -47
type: informal
- name: Sexta-feira Santa
regions: [pt]
function: easter(year)
function_modifier: -2
- name: Páscoa
regions: [pt]
function: easter(year)
- name: Corpo de Deus
regions: [pt]
function: easter(year)
function_modifier: 60
1:
- name: Ano Novo
regions: [pt]
mday: 1
4:
- name: Dia da Liberdade
regions: [pt]
mday: 25
5:
- name: Dia do Trabalhador
regions: [pt]
mday: 1
6:
- name: Dia de Portugal
regions: [pt]
mday: 10
- name: Dia de Santo António
regions: [pt_li]
mday: 13
- name: Dia de São João
regions: [pt_po]
mday: 24
8:
- name: Assunção de Nossa Senhora
regions: [pt]
mday: 15
10:
- name: Dia da República
regions: [pt]
mday: 5
11:
- name: Dia de Todos-os-Santos
regions: [pt]
mday: 1
12:
- name: Restauração da Independência
regions: [pt]
mday: 1
- name: Imaculada Conceição
regions: [pt]
mday: 8
- name: Natal
regions: [pt]
mday: 25
tests:
- given:
date: '2008-01-01'
regions: ["pt"]
options: ["informal"]
expect:
name: "Ano Novo"
- given:
date: '2005-02-08'
regions: ["pt"]
options: ["informal"]
expect:
name: "Carnaval"
- given:
date: '2006-02-28'
regions: ["pt"]
options: ["informal"]
expect:
name: "Carnaval"
- given:
date: '2007-02-20'
regions: ["pt"]
options: ["informal"]
expect:
name: "Carnaval"
- given:
date: '2008-02-05'
regions: ["pt"]
options: ["informal"]
expect:
name: "Carnaval"
- given:
date: '2008-03-21'
regions: ["pt"]
options: ["informal"]
expect:
name: "Sexta-feira Santa"
- given:
date: '2008-03-23'
regions: ["pt"]
options: ["informal"]
expect:
name: "Páscoa"
- given:
date: '2016-03-27'
regions: ["pt"]
options: ["informal"]
expect:
name: "Páscoa"
- given:
date: '2008-04-25'
regions: ["pt"]
options: ["informal"]
expect:
name: "Dia da Liberdade"
- given:
date: '2008-05-01'
regions: ["pt"]
options: ["informal"]
expect:
name: "Dia do Trabalhador"
- given:
date: '2016-05-26'
regions: ["pt"]
options: ["informal"]
expect:
name: "Corpo de Deus"
- given:
date: '2008-06-10'
regions: ["pt"]
options: ["informal"]
expect:
name: "Dia de Portugal"
- given:
date: '2008-08-15'
regions: ["pt"]
options: ["informal"]
expect:
name: "Assunção de Nossa Senhora"
- given:
date: '2008-10-05'
regions: ["pt"]
options: ["informal"]
expect:
name: "Dia da República"
- given:
date: '2008-11-01'
regions: ["pt"]
options: ["informal"]
expect:
name: "Dia de Todos-os-Santos"
- given:
date: '2008-12-01'
regions: ["pt"]
options: ["informal"]
expect:
name: "Restauração da Independência"
- given:
date: '2008-12-08'
regions: ["pt"]
options: ["informal"]
expect:
name: "Imaculada Conceição"
- given:
date: '2008-12-25'
regions: ["pt"]
options: ["informal"]
expect:
name: "Natal"