forked from TandaHQ/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dk.yaml
208 lines (207 loc) · 4.25 KB
/
dk.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
# Danish holiday definitions for the Ruby Holiday gem.
#
# Updated: 2008-11-22.
# Sources:
# - http://en.wikipedia.org/wiki/Holidays_in_Denmark
# - http://www.amblondon.um.dk/en/menu/AboutDenmark/PublicHolidaysInDK/PublicHolidaysinDenmark-until2010.htm
# - http://borger.dk/forside/kirke-og-tro/folkekirken/officielle-helligdage
---
months:
0:
- name: Fastelavn
regions: [dk]
function: easter(year)
function_modifier: -49
type: informal
- name: Palmesøndag
regions: [dk]
function: easter(year)
function_modifier: -7
type: informal
- name: Skærtorsdag
regions: [dk]
function: easter(year)
function_modifier: -3
- name: Langfredag
regions: [dk]
function: easter(year)
function_modifier: -2
- name: Påskedag
regions: [dk]
function: easter(year)
- name: 2. påskedag
regions: [dk]
function: easter(year)
function_modifier: 1
- name: Store Bededag
regions: [dk]
function: easter(year)
function_modifier: 26
- name: Kristi Himmelfartsdag
regions: [dk]
function: easter(year)
function_modifier: 39
- name: Pinsedag
regions: [dk]
function: easter(year)
function_modifier: 49
- name: 2. Pinsedag
regions: [dk]
function: easter(year)
function_modifier: 50
1:
- name: Nytårsdag
regions: [dk]
mday: 1
4:
- name: 1. april
regions: [dk]
mday: 1
type: informal
- name: Danmarks besættelse
regions: [dk]
mday: 9
type: informal
- name: Dronningens fødselsdag
regions: [dk]
mday: 16
type: informal
5:
- name: Arbejdernes kampdag
regions: [dk]
mday: 1
type: informal
- name: Danmarks befrielse
regions: [dk]
mday: 5
type: informal
6:
- name: Grundlovsdag
regions: [dk]
mday: 5
type: informal
- name: Valdemarsdag og Genforeningsdag
regions: [dk]
mday: 15
type: informal
- name: Sankt Hans aften
regions: [dk]
mday: 23
type: informal
11:
- name: Mortensaften
regions: [dk]
mday: 10
type: informal
12:
- name: Sankt Lucia
regions: [dk]
mday: 13
type: informal
- name: Juleaftensdag
regions: [dk]
mday: 24
type: informal
- name: 1. juledag
regions: [dk]
mday: 25
- name: 2. juledag
regions: [dk]
mday: 26
tests:
- given:
date: '2007-01-01'
regions: ["dk"]
options: ["informal"]
expect:
name: "Nytårsdag"
- given:
date: '2007-02-18'
regions: ["dk"]
options: ["informal"]
expect:
name: "Fastelavn"
- given:
date: '2007-04-09'
regions: ["dk"]
options: ["informal"]
expect:
name: "2. påskedag"
- given:
date: '2007-04-16'
regions: ["dk"]
options: ["informal"]
expect:
name: "Dronningens fødselsdag"
- given:
date: '2007-04-05'
regions: ["dk"]
options: ["informal"]
expect:
name: "Skærtorsdag"
- given:
date: '2007-04-06'
regions: ["dk"]
options: ["informal"]
expect:
name: "Langfredag"
- given:
date: '2007-04-08'
regions: ["dk"]
options: ["informal"]
expect:
name: "Påskedag"
- given:
date: '2007-05-01'
regions: ["dk"]
options: ["informal"]
expect:
name: "Arbejdernes kampdag"
- given:
date: '2007-05-04'
regions: ["dk"]
options: ["informal"]
expect:
name: "Store Bededag"
- given:
date: '2007-05-17'
regions: ["dk"]
options: ["informal"]
expect:
name: "Kristi Himmelfartsdag"
- given:
date: '2007-05-27'
regions: ["dk"]
options: ["informal"]
expect:
name: "Pinsedag"
- given:
date: '2007-05-28'
regions: ["dk"]
options: ["informal"]
expect:
name: "2. Pinsedag"
- given:
date: '2007-06-05'
regions: ["dk"]
options: ["informal"]
expect:
name: "Grundlovsdag"
- given:
date: '2007-12-24'
regions: ["dk"]
options: ["informal"]
expect:
name: "Juleaftensdag"
- given:
date: '2007-12-25'
regions: ["dk"]
options: ["informal"]
expect:
name: "1. juledag"
- given:
date: '2007-12-26'
regions: ["dk"]
options: ["informal"]
expect:
name: "2. juledag"