forked from holidays/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rs_la.yaml
129 lines (128 loc) · 3.06 KB
/
rs_la.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
# Serbian holiday definitions for the Ruby Holiday gem. In Latin.
#
# Updated: 2017-06-09
# Sources:
# - https://en.wikipedia.org/wiki/Public_holidays_in_Serbia
# - https://de.wikipedia.org/wiki/Feiertage_in_Serbien
# - https://www.timeanddate.com/holidays/serbia/
# - https://www.wko.at/service/aussenwirtschaft/Serbien:-Feiertage-2016.html
# - http://www.lexilogos.com/keyboard/serbian_conversion.htm
---
months:
0:
- name: Veliki Petak # Good Friday
regions: [rs_la]
function: orthodox_easter(year)
function_modifier: -2
- name: Velika Subota # Holy Saturday
regions: [rs_la]
function: orthodox_easter(year)
function_modifier: -1
- name: Uskrs # Easter Sunday
regions: [rs_la]
function: orthodox_easter(year)
- name: Vaskrsni ponedeljak # Easter Monday
regions: [rs_la]
function: orthodox_easter(year)
function_modifier: 1
1:
- name: Nova Godina # New Year's Day
regions: [rs_la]
mday: 1
- name: Nova Godina # Day after New Year's Day
regions: [rs_la]
mday: 2
- name: Božić # Christmas Day
regions: [rs_la]
mday: 7
- name: Dan Svetog Save # Saint Sava Day
regions: [rs_la]
mday: 27
2:
- name: Dan državnosti Srbije # Statehood Day
regions: [rs_la]
mday: 15
- name: Dan državnosti Srbije # Day after Statehood Day
regions: [rs_la]
mday: 16
5:
- name: Praznik rada # Worker's Day
regions: [rs_la]
mday: 1
- name: Praznik rada # Day after Worker's Day
regions: [rs_la]
mday: 2
- name: Dan pobede # Victory Day
regions: [rs_la]
type: informal
mday: 9
6:
- name: Vidovdan # Saint Vitus Day
regions: [rs_la]
mday: 28
11:
- name: Dan primirja # Armistice Day
regions: [rs_la]
mday: 11
tests:
- given:
date: ['2017-1-1', '2017-1-2']
regions: ["rs_la"]
expect:
name: "Nova Godina"
- given:
date: '2017-1-7'
regions: ["rs_la"]
expect:
name: "Božić"
- given:
date: '2017-1-27'
regions: ["rs_la"]
expect:
name: "Dan Svetog Save"
- given:
date: ['2017-2-15', '2017-2-16']
regions: ["rs_la"]
expect:
name: "Dan državnosti Srbije"
- given:
date: ['2017-5-1', '2017-5-2']
regions: ["rs_la"]
expect:
name: "Praznik rada"
- given:
date: '2017-5-9'
regions: ["rs_la"]
options: ["informal"]
expect:
name: "Dan pobede"
- given:
date: '2017-6-28'
regions: ["rs_la"]
expect:
name: "Vidovdan"
- given:
date: '2017-11-11'
regions: ["rs_la"]
expect:
name: "Dan primirja"
- given:
date: ['2017-4-14', '2018-4-6', '2019-4-26']
regions: ["rs_la"]
expect:
name: "Veliki Petak"
- given:
date: ['2017-4-15', '2018-4-7', '2019-4-27']
regions: ["rs_la"]
expect:
name: "Velika Subota"
- given:
date: ['2017-4-16', '2018-4-8', '2019-4-28']
regions: ["rs_la"]
expect:
name: "Uskrs"
- given:
date: ['2017-4-17', '2018-4-9', '2019-4-29']
regions: ["rs_la"]
expect:
name: "Vaskrsni ponedeljak"