forked from holidays/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ua.yaml
161 lines (160 loc) · 4 KB
/
ua.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
# Ukrainian holiday definitions for the Ruby Holiday gem.
#
# Updated: 2019-02-10.
# Sources:
# - https://en.wikipedia.org/wiki/Public_holidays_in_Ukraine
# - https://uk.wikipedia.org/wiki/%D0%9D%D0%B5%D1%80%D0%BE%D0%B1%D0%BE%D1%87%D1%96_%D0%B4%D0%BD%D1%96_%D0%B2_%D0%A3%D0%BA%D1%80%D0%B0%D1%97%D0%BD%D1%96
---
months:
0:
- name: Великдень # Easter Sunday
regions: [ua]
function: orthodox_easter(year)
observed: to_monday_if_weekend(date)
- name: Трійця # (Julian) Pentecost
regions: [ua]
function: orthodox_easter(year)
function_modifier: 49
observed: to_monday_if_weekend(date)
1:
- name: Новий Рік # New Year's Day
regions: [ua]
mday: 1
observed: to_monday_if_weekend(date)
- name: Різдво Христове # Orthodox Christmas Day
regions: [ua]
mday: 7
observed: to_monday_if_weekend(date)
3:
- name: Міжнародний жіночий день # International Women's Day
regions: [ua]
mday: 8
observed: to_monday_if_weekend(date)
5:
- name: День праці # International Workers' Day
regions: [ua]
mday: 1
observed: to_monday_if_weekend(date)
- name: День міжнародної солідарності трудящих # International Workers' Day
regions: [ua]
mday: 2
year_ranges:
until: 2017
- name: День перемоги над нацизмом у Другій світовій війні # Victory day over Nazism in World War II
regions: [ua]
mday: 9
observed: to_monday_if_weekend(date)
6:
- name: День Конституції # Constitution Day
regions: [ua]
mday: 28
observed: to_monday_if_weekend(date)
year_ranges:
from: 1997
7:
- name: День Незалежності України # Independence Day
regions: [ua]
mday: 16
year_ranges:
limited: [1991]
8:
- name: День Незалежності # Independence Day
regions: [ua]
mday: 24
observed: to_monday_if_weekend(date)
year_ranges:
from: 1992
10:
- name: День захисника України # Defender of Ukraine Day
regions: [ua]
mday: 14
observed: to_monday_if_weekend(date)
year_ranges:
from: 2015
12:
- name: Різдво Христове # (Gregorian and Revised Julian) Christmas
regions: [ua]
mday: 25
observed: to_monday_if_weekend(date)
year_ranges:
from: 2017
tests:
- given:
date: "2018-01-01"
regions: [ua]
expect:
name: Новий Рік
- given:
date: "2018-01-07"
regions: [ua]
expect:
name: Різдво Христове
- given:
date: "2018-01-08"
regions: [ua]
options: [observed]
expect:
name: Різдво Христове
- given:
date: "2018-03-08"
regions: [ua]
expect:
name: Міжнародний жіночий день
- given:
date: "2018-04-08"
regions: [ua]
expect:
name: Великдень
- given:
date: "2018-04-09"
regions: [ua]
options: [observed]
expect:
name: Великдень
- given:
date: "2018-05-01"
regions: [ua]
expect:
name: День праці
- given:
date: "2018-05-09"
regions: [ua]
expect:
name: День перемоги над нацизмом у Другій світовій війні
- given:
date: "2018-05-27"
regions: [ua]
expect:
name: Трійця
- given:
date: "2018-05-28"
regions: [ua]
options: [observed]
expect:
name: Трійця
- given:
date: "2018-06-28"
regions: [ua]
expect:
name: День Конституції
- given:
date: "2018-08-24"
regions: [ua]
expect:
name: День Незалежності
- given:
date: "2018-10-14"
regions: [ua]
expect:
name: День захисника України
- given:
date: "2018-10-15"
regions: [ua]
options: [observed]
expect:
name: День захисника України
- given:
date: "2018-12-25"
regions: [ua]
expect:
name: Різдво Христове