forked from holidays/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ee.yaml
123 lines (121 loc) · 2.68 KB
/
ee.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
# Estonian holiday definitions for the Ruby Holiday gem.
#
# Updated: 2017-05-25
#
# Changes 2017-06-08:
# - Use small initial letters
# - Good Friday and Easter Sunday aren't informal
# - New Year's Day is always on January 1st
# - Correct Spring Day definition
# - Enhance tests
# Sources:
# - https://en.wikipedia.org/wiki/Public_holidays_in_Estonia
# - https://www.riigiteataja.ee/akt/13276841?leiaKehtiv
---
months:
0:
- name: suur reede # Good Friday
regions: [ee]
function: easter(year)
function_modifier: -2
- name: ülestõusmispühade 1. püha # Easter Sunday
regions: [ee]
function: easter(year)
- name: nelipühade 1. püha
regions: [ee]
function: easter(year)
function_modifier: 49
1:
- name: uusaasta # New Year's Day
regions: [ee]
mday: 1
2:
- name: iseseisvuspäev # Independence Day
regions: [ee]
mday: 24
5:
- name: kevadpüha # Spring Day
regions: [ee]
mday: 1
6:
- name: võidupüha ja jaanilaupäev # Victory Day
regions: [ee]
mday: 23
- name: jaanipäev # Jaan's Day
regions: [ee]
mday: 24
8:
- name: taasiseseisvumispäev # Day of Restoration of Independence
regions: [ee]
mday: 20
12:
- name: jõululaupäev # Christmas Eve
regions: [ee]
mday: 24
- name: esimene jõulupüha # Christmas Day
regions: [ee]
mday: 25
- name: teine jõulupüha # Boxing Day
regions: [ee]
mday: 26
tests:
- given:
date: '2017-01-01'
regions: ["ee"]
expect:
name: "uusaasta"
- given:
date: '2017-2-24'
regions: ["ee"]
expect:
name: "iseseisvuspäev"
- given:
date: '2017-5-1'
regions: ["ee"]
expect:
name: "kevadpüha"
- given:
date: '2017-6-23'
regions: ["ee"]
expect:
name: "võidupüha ja jaanilaupäev"
- given:
date: '2017-6-24'
regions: ["ee"]
expect:
name: "jaanipäev"
- given:
date: '2017-8-20'
regions: ["ee"]
expect:
name: "taasiseseisvumispäev"
- given:
date: '2017-12-24'
regions: ["ee"]
expect:
name: "jõululaupäev"
- given:
date: '2017-12-25'
regions: ["ee"]
expect:
name: "esimene jõulupüha"
- given:
date: '2017-12-26'
regions: ["ee"]
expect:
name: "teine jõulupüha"
- given:
date: ['2017-4-14', '2018-3-30', '2019-4-19']
regions: ["ee"]
expect:
name: "suur reede"
- given:
date: ['2017-4-16', '2018-4-1', '2019-4-21']
regions: ["ee"]
expect:
name: "ülestõusmispühade 1. püha"
- given:
date: ['2017-6-4', '2018-5-20', '2019-6-9']
regions: ["ee"]
expect:
name: "nelipühade 1. püha"