This repository has been archived by the owner on Jun 23, 2020. It is now read-only.
forked from holidays/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ro.yaml
240 lines (239 loc) · 5.4 KB
/
ro.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
# Romanian holiday definitions for the Ruby Holiday gem.
#
# Created: 2013-07-23 by Mihai Târnovan
# Sources:
# - http://ro.wikipedia.org/wiki/S%C4%83rb%C4%83tori_publice_%C3%AEn_Rom%C3%A2nia
# - http://en.wikipedia.org/wiki/Public_holidays_in_Romania
#
# Changes 2019-03-11
# - Add Unirea Principatelor Române (since 2017)
# - Add Ziua Copilului (since 2017)
# - Add Vinerea Mare (since 2018)
#
# Sources:
# - https://www.mediafax.ro/politic/legea-prin-care-24-ianuarie-a-fost-declarata-zi-libera-nelucratoare-a-fost-promulgata-de-iohannis-15777292
# - https://www.avocatnet.ro/articol_43954/Din-2017-salaria%C8%9Bii-vor-sta-acas%C4%83-%C8%99i-de-Ziua-Copilului-1-iunie-inclus%C4%83-de-azi-pe-lista-liberelor-legale.html
# - https://www.mediafax.ro/social/iohannis-a-promulgat-legea-prin-care-vinerea-mare-este-sarbatoare-legala-nelucratoare-17058413
---
months:
0:
- name: Paștele - Vinerea Mare # Good Friday
regions: [ro]
function: orthodox_easter(year)
function_modifier: -2
year_ranges:
from: 2018
- name: Paștele - duminică
regions: [ro]
function: orthodox_easter(year)
- name: Paștele - luni
regions: [ro]
function: orthodox_easter(year)
function_modifier: 1
- name: Rusaliile - 50
regions: [ro]
function: orthodox_easter(year)
function_modifier: 49
- name: Rusaliile - 51
regions: [ro]
function: orthodox_easter(year)
function_modifier: 50
1:
- name: Anul nou
regions: [ro]
mday: 1
- name: Anul nou
regions: [ro]
mday: 2
- name: Unirea Principatelor Române
regions: [ro]
mday: 24
year_ranges:
from: 2017
5:
- name: Ziua muncii
regions: [ro]
mday: 1
6:
- name: Ziua Copilului
regions: [ro]
mday: 1
year_ranges:
from: 2017
8:
- name: Adormirea Maicii Domnului
regions: [ro]
mday: 15
11:
- name: Sfântul Apostol Andrei
regions: [ro]
mday: 30
12:
- name: Ziua Națională
regions: [ro]
mday: 1
- name: Sărbătoarea Nașterii Domnului
regions: [ro]
mday: 25
- name: Sărbătoarea Nașterii Domnului
regions: [ro]
mday: 26
tests:
- given:
date: '2017-04-14'
regions: ["ro"]
expect:
holiday: false
- given:
date: '2018-04-06'
regions: ["ro"]
options: ["informal"]
expect:
name: "Paștele - Vinerea Mare"
- given:
date: '2019-04-26'
regions: ["ro"]
options: ["informal"]
expect:
name: "Paștele - Vinerea Mare"
- given:
date: '1961-04-09'
regions: ["ro"]
options: ["informal"]
expect:
name: "Paștele - duminică"
- given:
date: '1961-04-10'
regions: ["ro"]
options: ["informal"]
expect:
name: "Paștele - luni"
- given:
date: '2013-05-05'
regions: ["ro"]
options: ["informal"]
expect:
name: "Paștele - duminică"
- given:
date: '2013-05-06'
regions: ["ro"]
options: ["informal"]
expect:
name: "Paștele - luni"
- given:
date: '2027-05-02'
regions: ["ro"]
options: ["informal"]
expect:
name: "Paștele - duminică"
- given:
date: '2027-05-03'
regions: ["ro"]
options: ["informal"]
expect:
name: "Paștele - luni"
- given:
date: '2012-06-04'
regions: ["ro"]
options: ["informal"]
expect:
name: "Rusaliile - 51"
- given:
date: '2013-06-23'
regions: ["ro"]
options: ["informal"]
expect:
name: "Rusaliile - 50"
- given:
date: '2013-06-24'
regions: ["ro"]
options: ["informal"]
expect:
name: "Rusaliile - 51"
- given:
date: '1986-06-22'
regions: ["ro"]
options: ["informal"]
expect:
name: "Rusaliile - 50"
- given:
date: '1986-06-23'
regions: ["ro"]
options: ["informal"]
expect:
name: "Rusaliile - 51"
- given:
date: '2009-01-01'
regions: ["ro"]
options: ["informal"]
expect:
name: "Anul nou"
- given:
date: '2014-01-02'
regions: ["ro"]
options: ["informal"]
expect:
name: "Anul nou"
- given:
date: '2017-01-24'
regions: ["ro"]
options: ["informal"]
expect:
name: "Unirea Principatelor Române"
- given:
date: '2016-01-24'
regions: ["ro"]
expect:
holiday: false
- given:
date: '2009-05-01'
regions: ["ro"]
options: ["informal"]
expect:
name: "Ziua muncii"
- given:
date: '2017-06-01'
regions: ["ro"]
options: ["informal"]
expect:
name: "Ziua Copilului"
- given:
date: '2016-06-01'
regions: ["ro"]
expect:
holiday: false
- given:
date: '2012-08-15'
regions: ["ro"]
options: ["informal"]
expect:
name: "Adormirea Maicii Domnului"
- given:
date: '2013-11-30'
regions: ["ro"]
options: ["informal"]
expect:
name: "Sfântul Apostol Andrei"
- given:
date: '2013-12-01'
regions: ["ro"]
options: ["informal"]
expect:
name: "Ziua Națională"
- given:
date: '2013-12-25'
regions: ["ro"]
options: ["informal"]
expect:
name: "Sărbătoarea Nașterii Domnului"
- given:
date: '2013-12-26'
regions: ["ro"]
options: ["informal"]
expect:
name: "Sărbătoarea Nașterii Domnului"
- given:
date: '2013-07-23'
regions: ["ro"]
expect:
holiday: false