forked from holidays/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hu.yaml
130 lines (129 loc) · 2.6 KB
/
hu.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
# Hungarian holiday definitions for the Ruby Holiday gem.
#
# Updated: 2012-03-01 by spap
---
months:
0:
- name: Húsvét hétfő
regions: [hu]
function: easter(year)
function_modifier: 1
- name: Pünkösd hétfő
regions: [hu]
function: easter(year)
function_modifier: 50
1:
- name: Újév
regions: [hu]
mday: 1
3:
- name: 1848/49-es forradalom és szabadságharc ünnepe
regions: [hu]
mday: 15
5:
- name: A munka ünnepe
regions: [hu]
mday: 1
8:
- name: Az államalapítás ünnepe
regions: [hu]
mday: 20
10:
- name: 1956-os forradalom és szabadságharc ünnepe
regions: [hu]
mday: 23
11:
- name: Mindenszentek
regions: [hu]
mday: 1
12:
- name: Karácsony
regions: [hu]
mday: 25
- name: Karácsony
regions: [hu]
mday: 26
tests:
- given:
date: '2012-01-01'
regions: ["hu"]
options: ["informal"]
expect:
name: "Újév"
- given:
date: '2011-01-01'
regions: ["hu"]
options: ["informal"]
expect:
name: "Újév"
- given:
date: '2012-03-15'
regions: ["hu"]
options: ["informal"]
expect:
name: "1848/49-es forradalom és szabadságharc ünnepe"
- given:
date: '2011-04-25'
regions: ["hu"]
options: ["informal"]
expect:
name: "Húsvét hétfő"
- given:
date: '2012-04-09'
regions: ["hu"]
options: ["informal"]
expect:
name: "Húsvét hétfő"
- given:
date: '2012-05-01'
regions: ["hu"]
options: ["informal"]
expect:
name: "A munka ünnepe"
- given:
date: '2011-06-13'
regions: ["hu"]
options: ["informal"]
expect:
name: "Pünkösd hétfő"
- given:
date: '2012-05-28'
regions: ["hu"]
options: ["informal"]
expect:
name: "Pünkösd hétfő"
- given:
date: '2012-08-20'
regions: ["hu"]
options: ["informal"]
expect:
name: "Az államalapítás ünnepe"
- given:
date: '2012-10-23'
regions: ["hu"]
options: ["informal"]
expect:
name: "1956-os forradalom és szabadságharc ünnepe"
- given:
date: '2012-11-01'
regions: ["hu"]
options: ["informal"]
expect:
name: "Mindenszentek"
- given:
date: '2012-12-25'
regions: ["hu"]
options: ["informal"]
expect:
name: "Karácsony"
- given:
date: '2012-12-26'
regions: ["hu"]
options: ["informal"]
expect:
name: "Karácsony"
- given:
date: '2012-03-14'
regions: ["hu"]
expect:
holiday: false