forked from TandaHQ/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ie.yaml
172 lines (171 loc) · 3.65 KB
/
ie.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
# Ireland holiday definitions for the Ruby Holiday gem.
#
# Updated: 2012-03-16.
# Sources:
# - http://en.wikipedia.org/wiki/Public_holidays_in_the_Republic_of_Ireland
# - http://www.citizensinformation.ie/categories/employment/employment-rights-and-conditions/leave-and-holidays/public-holidays-in-ireland
# While there is mention that Jan 2 2012 was not officially a bank holiday, in reality very few businesses will not observe that date as a bank holiday
---
months:
0:
- name: Easter Monday
regions: [ie]
function: easter(year)
function_modifier: 1
1:
- name: New Year's Day
regions: [ie]
mday: 1
observed: to_monday_if_weekend(date)
3:
- name: St. Patrick's Day
regions: [ie]
mday: 17
observed: to_monday_if_weekend(date)
5:
- name: May Day
regions: [ie]
week: 1
wday: 1
6:
- name: June Bank Holiday
regions: [ie]
week: 1
wday: 1
8:
- name: August Bank Holiday
regions: [ie]
week: 1
wday: 1
10:
- name: October Bank Holiday
regions: [ie]
week: -1
wday: 1
12:
- name: Christmas Day
regions: [ie]
mday: 25
observed: to_monday_if_weekend(date)
- name: St. Stephen's Day
regions: [ie]
mday: 26
observed: to_weekday_if_boxing_weekend(date)
tests:
- given:
date: '2008-01-01'
regions: ["ie"]
expect:
name: "New Year's Day"
- given:
date: '2008-03-17'
regions: ["ie"]
expect:
name: "St. Patrick's Day"
- given:
date: '2008-03-24'
regions: ["ie"]
expect:
name: "Easter Monday"
- given:
date: '2008-05-05'
regions: ["ie"]
expect:
name: "May Day"
- given:
date: '2008-06-02'
regions: ["ie"]
expect:
name: "June Bank Holiday"
- given:
date: '2008-08-04'
regions: ["ie"]
expect:
name: "August Bank Holiday"
- given:
date: '2008-10-27'
regions: ["ie"]
expect:
name: "October Bank Holiday"
- given:
date: '2008-12-25'
regions: ["ie"]
expect:
name: "Christmas Day"
- given:
date: '2008-12-26'
regions: ["ie"]
expect:
name: "St. Stephen's Day"
- given:
date: '2012-01-02'
regions: ["ie"]
options: ["observed"]
expect:
name: "New Year's Day"
- given:
date: '2012-03-19'
regions: ["ie"]
options: ["observed"]
expect:
name: "St. Patrick's Day"
- given:
date: '2012-04-09'
regions: ["ie"]
options: ["observed"]
expect:
name: "Easter Monday"
- given:
date: '2012-05-07'
regions: ["ie"]
options: ["observed"]
expect:
name: "May Day"
- given:
date: '2012-06-04'
regions: ["ie"]
options: ["observed"]
expect:
name: "June Bank Holiday"
- given:
date: '2012-08-06'
regions: ["ie"]
options: ["observed"]
expect:
name: "August Bank Holiday"
- given:
date: '2012-10-29'
regions: ["ie"]
options: ["observed"]
expect:
name: "October Bank Holiday"
- given:
date: '2011-12-26'
regions: ["ie"]
options: ["observed"]
expect:
name: "Christmas Day"
- given:
date: '2011-12-27'
regions: ["ie"]
options: ["observed"]
expect:
name: "St. Stephen's Day"
- given:
date: '2012-12-25'
regions: ["ie"]
options: ["observed"]
expect:
name: "Christmas Day"
- given:
date: '2012-12-26'
regions: ["ie"]
options: ["observed"]
expect:
name: "St. Stephen's Day"
- given:
date: '2015-12-28'
regions: ["ie"]
options: ["observed"]
expect:
name: "St. Stephen's Day"