pandas-market-calendars 4.3.1__py3-none-any.whl → 4.3.3__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- pandas_market_calendars/__init__.py +38 -37
- pandas_market_calendars/calendar_registry.py +53 -48
- pandas_market_calendars/calendar_utils.py +261 -225
- pandas_market_calendars/calendars/asx.py +66 -63
- pandas_market_calendars/calendars/bmf.py +206 -227
- pandas_market_calendars/calendars/bse.py +407 -409
- pandas_market_calendars/calendars/cboe.py +145 -115
- pandas_market_calendars/calendars/cme.py +402 -240
- pandas_market_calendars/calendars/cme_globex_agriculture.py +126 -103
- pandas_market_calendars/calendars/cme_globex_base.py +119 -103
- pandas_market_calendars/calendars/cme_globex_crypto.py +160 -147
- pandas_market_calendars/calendars/cme_globex_energy_and_metals.py +216 -138
- pandas_market_calendars/calendars/cme_globex_equities.py +123 -104
- pandas_market_calendars/calendars/cme_globex_fixed_income.py +136 -113
- pandas_market_calendars/calendars/cme_globex_fx.py +101 -78
- pandas_market_calendars/calendars/eurex.py +139 -119
- pandas_market_calendars/calendars/eurex_fixed_income.py +98 -0
- pandas_market_calendars/calendars/hkex.py +426 -408
- pandas_market_calendars/calendars/ice.py +81 -65
- pandas_market_calendars/calendars/iex.py +112 -98
- pandas_market_calendars/calendars/jpx.py +109 -103
- pandas_market_calendars/calendars/lse.py +114 -91
- pandas_market_calendars/calendars/mirror.py +130 -114
- pandas_market_calendars/calendars/nyse.py +1324 -1127
- pandas_market_calendars/calendars/ose.py +116 -150
- pandas_market_calendars/calendars/sifma.py +350 -297
- pandas_market_calendars/calendars/six.py +132 -114
- pandas_market_calendars/calendars/sse.py +311 -290
- pandas_market_calendars/calendars/tase.py +197 -195
- pandas_market_calendars/calendars/tsx.py +181 -159
- pandas_market_calendars/class_registry.py +22 -16
- pandas_market_calendars/holidays/cme.py +385 -340
- pandas_market_calendars/holidays/cme_globex.py +214 -198
- pandas_market_calendars/holidays/cn.py +1455 -1436
- pandas_market_calendars/holidays/jp.py +398 -396
- pandas_market_calendars/holidays/jpx_equinox.py +453 -95
- pandas_market_calendars/holidays/nyse.py +1531 -1472
- pandas_market_calendars/holidays/oz.py +63 -65
- pandas_market_calendars/holidays/sifma.py +338 -321
- pandas_market_calendars/holidays/uk.py +32 -26
- pandas_market_calendars/holidays/us.py +376 -360
- pandas_market_calendars/market_calendar.py +895 -789
- {pandas_market_calendars-4.3.1.dist-info → pandas_market_calendars-4.3.3.dist-info}/METADATA +7 -5
- pandas_market_calendars-4.3.3.dist-info/RECORD +50 -0
- {pandas_market_calendars-4.3.1.dist-info → pandas_market_calendars-4.3.3.dist-info}/WHEEL +1 -1
- pandas_market_calendars-4.3.1.dist-info/RECORD +0 -49
- {pandas_market_calendars-4.3.1.dist-info → pandas_market_calendars-4.3.3.dist-info}/LICENSE +0 -0
- {pandas_market_calendars-4.3.1.dist-info → pandas_market_calendars-4.3.3.dist-info}/NOTICE +0 -0
- {pandas_market_calendars-4.3.1.dist-info → pandas_market_calendars-4.3.3.dist-info}/top_level.txt +0 -0
@@ -1,321 +1,338 @@
|
|
1
|
-
from dateutil.relativedelta import
|
2
|
-
from pandas import
|
3
|
-
from
|
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
|
-
month=1,
|
60
|
-
day=1,
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
"
|
76
|
-
|
77
|
-
month=
|
78
|
-
day=1,
|
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
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
month=
|
195
|
-
day=1,
|
196
|
-
|
197
|
-
)
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
#
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
month=
|
207
|
-
day=
|
208
|
-
|
209
|
-
)
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
month=
|
223
|
-
day=
|
224
|
-
|
225
|
-
)
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
#
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
"
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
)
|
296
|
-
|
297
|
-
|
298
|
-
#
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
)
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
"
|
309
|
-
month=12,
|
310
|
-
day=
|
311
|
-
days_of_week=(MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY),
|
312
|
-
)
|
313
|
-
|
314
|
-
# If
|
315
|
-
# If
|
316
|
-
|
317
|
-
"Weekend
|
318
|
-
month=12,
|
319
|
-
day=
|
320
|
-
days_of_week=(MONDAY, TUESDAY),
|
321
|
-
)
|
1
|
+
from dateutil.relativedelta import MO, TH
|
2
|
+
from pandas import DateOffset, Timestamp
|
3
|
+
from pandas.tseries.holiday import (
|
4
|
+
Holiday,
|
5
|
+
nearest_workday,
|
6
|
+
next_monday,
|
7
|
+
sunday_to_monday,
|
8
|
+
previous_workday,
|
9
|
+
Easter,
|
10
|
+
)
|
11
|
+
from pandas.tseries.offsets import Day
|
12
|
+
|
13
|
+
from pandas_market_calendars.market_calendar import (
|
14
|
+
MONDAY,
|
15
|
+
TUESDAY,
|
16
|
+
WEDNESDAY,
|
17
|
+
THURSDAY,
|
18
|
+
FRIDAY,
|
19
|
+
)
|
20
|
+
|
21
|
+
####################################################
|
22
|
+
# US New Years Day Jan 1
|
23
|
+
# When Jan 1 is a Sunday, US markets observe the subsequent Monday.
|
24
|
+
# When Jan 1 is a Saturday (as in 2005 and 2011), no holiday is observed.
|
25
|
+
#####################################################
|
26
|
+
USNewYearsDay = Holiday(
|
27
|
+
"New Years Day US",
|
28
|
+
month=1,
|
29
|
+
day=1,
|
30
|
+
days_of_week=(
|
31
|
+
MONDAY,
|
32
|
+
TUESDAY,
|
33
|
+
WEDNESDAY,
|
34
|
+
THURSDAY,
|
35
|
+
FRIDAY,
|
36
|
+
),
|
37
|
+
observance=sunday_to_monday,
|
38
|
+
)
|
39
|
+
|
40
|
+
USNewYearsEve2pmEarlyClose = Holiday(
|
41
|
+
"New Years Eve US",
|
42
|
+
month=1,
|
43
|
+
day=1,
|
44
|
+
days_of_week=(
|
45
|
+
MONDAY,
|
46
|
+
TUESDAY,
|
47
|
+
WEDNESDAY,
|
48
|
+
THURSDAY,
|
49
|
+
FRIDAY,
|
50
|
+
),
|
51
|
+
observance=previous_workday,
|
52
|
+
)
|
53
|
+
|
54
|
+
#########################################################################
|
55
|
+
# Martin Luther King Jr
|
56
|
+
##########################################################################
|
57
|
+
MartinLutherKingJr = Holiday(
|
58
|
+
"Dr. Martin Luther King Jr. Day",
|
59
|
+
month=1,
|
60
|
+
day=1,
|
61
|
+
days_of_week=(
|
62
|
+
MONDAY,
|
63
|
+
TUESDAY,
|
64
|
+
WEDNESDAY,
|
65
|
+
THURSDAY,
|
66
|
+
FRIDAY,
|
67
|
+
),
|
68
|
+
offset=DateOffset(weekday=MO(3)),
|
69
|
+
)
|
70
|
+
|
71
|
+
#########################################################################
|
72
|
+
# US Presidents Day Feb
|
73
|
+
##########################################################################
|
74
|
+
USPresidentsDay = Holiday(
|
75
|
+
"President" "s Day",
|
76
|
+
start_date=Timestamp("1971-01-01"),
|
77
|
+
month=2,
|
78
|
+
day=1,
|
79
|
+
days_of_week=(
|
80
|
+
MONDAY,
|
81
|
+
TUESDAY,
|
82
|
+
WEDNESDAY,
|
83
|
+
THURSDAY,
|
84
|
+
FRIDAY,
|
85
|
+
),
|
86
|
+
offset=DateOffset(weekday=MO(3)),
|
87
|
+
)
|
88
|
+
|
89
|
+
############################################################
|
90
|
+
# Good Friday
|
91
|
+
############################################################
|
92
|
+
GoodFridayThru2020 = Holiday(
|
93
|
+
"Good Friday 1908+",
|
94
|
+
end_date=Timestamp("2020-12-31"),
|
95
|
+
month=1,
|
96
|
+
day=1,
|
97
|
+
offset=[Easter(), Day(-2)],
|
98
|
+
)
|
99
|
+
|
100
|
+
# 2021 is early close.
|
101
|
+
# 2022 is a full holiday.
|
102
|
+
# 2023 is early close.
|
103
|
+
GoodFridayAdHoc = [
|
104
|
+
Timestamp("2022-04-15", tz="UTC"),
|
105
|
+
]
|
106
|
+
|
107
|
+
GoodFriday2pmEarlyCloseAdHoc = [
|
108
|
+
Timestamp("2021-04-02", tz="UTC"),
|
109
|
+
Timestamp("2023-04-07", tz="UTC"),
|
110
|
+
]
|
111
|
+
|
112
|
+
DayBeforeGoodFriday2pmEarlyCloseThru2020 = Holiday(
|
113
|
+
"Day Before Good Friday Thru 2020",
|
114
|
+
end_date=Timestamp("2020-12-31"),
|
115
|
+
month=1,
|
116
|
+
day=1,
|
117
|
+
offset=[Easter(), Day(-3)],
|
118
|
+
)
|
119
|
+
|
120
|
+
DayBeforeGoodFriday2pmEarlyCloseAdHoc = [
|
121
|
+
Timestamp("2022-04-14", tz="UTC"),
|
122
|
+
]
|
123
|
+
|
124
|
+
##################################################
|
125
|
+
# US Memorial Day (Decoration Day) May 30
|
126
|
+
# Closed every year since 1873
|
127
|
+
# Observed on Monday since 1971
|
128
|
+
##################################################
|
129
|
+
USMemorialDay = Holiday(
|
130
|
+
"Memorial Day",
|
131
|
+
month=5,
|
132
|
+
day=25,
|
133
|
+
days_of_week=(MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY),
|
134
|
+
offset=DateOffset(weekday=MO(1)),
|
135
|
+
)
|
136
|
+
|
137
|
+
DayBeforeUSMemorialDay2pmEarlyClose = Holiday(
|
138
|
+
"Day Before Memorial Day",
|
139
|
+
month=5,
|
140
|
+
day=25,
|
141
|
+
offset=[DateOffset(weekday=MO(1)), Day(-3)],
|
142
|
+
)
|
143
|
+
|
144
|
+
#######################################
|
145
|
+
# US Juneteenth (June 19th)
|
146
|
+
#######################################
|
147
|
+
USJuneteenthAfter2022 = Holiday(
|
148
|
+
"Juneteenth Starting at 2022",
|
149
|
+
start_date=Timestamp("2022-06-19"),
|
150
|
+
month=6,
|
151
|
+
day=19,
|
152
|
+
observance=nearest_workday,
|
153
|
+
)
|
154
|
+
|
155
|
+
#######################################
|
156
|
+
# US Independence Day July 4
|
157
|
+
#######################################
|
158
|
+
USIndependenceDay = Holiday(
|
159
|
+
"July 4th",
|
160
|
+
month=7,
|
161
|
+
day=4,
|
162
|
+
days_of_week=(MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY),
|
163
|
+
observance=nearest_workday,
|
164
|
+
)
|
165
|
+
|
166
|
+
# Day before Independence Day
|
167
|
+
DayBeforeUSIndependenceDay2pmEarlyClose = Holiday(
|
168
|
+
"Day Before Independence Day",
|
169
|
+
month=7,
|
170
|
+
day=4,
|
171
|
+
days_of_week=(MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY),
|
172
|
+
observance=previous_workday,
|
173
|
+
)
|
174
|
+
|
175
|
+
# When July 4th is a Saturday, the previous Friday is a holiday
|
176
|
+
# and the previous Thursday is an early close
|
177
|
+
ThursdayBeforeUSIndependenceDay2pmEarlyClose = Holiday(
|
178
|
+
"Thursday Before Independence Day",
|
179
|
+
month=7,
|
180
|
+
day=2,
|
181
|
+
days_of_week=(THURSDAY,),
|
182
|
+
)
|
183
|
+
|
184
|
+
#################################################
|
185
|
+
# US Labor Day
|
186
|
+
#################################################
|
187
|
+
USLaborDay = Holiday("Labor Day", month=9, day=1, offset=DateOffset(weekday=MO(1)))
|
188
|
+
|
189
|
+
#################################################
|
190
|
+
# Columbus Day
|
191
|
+
#################################################
|
192
|
+
USColumbusDay = Holiday(
|
193
|
+
"Columbus Day",
|
194
|
+
month=10,
|
195
|
+
day=1,
|
196
|
+
offset=DateOffset(weekday=MO(2)),
|
197
|
+
)
|
198
|
+
|
199
|
+
##########################################################
|
200
|
+
# Armistice/Veterans day
|
201
|
+
# When falls on Saturday, no holiday is observed.
|
202
|
+
# When falls on Sunday, the Monday following is a holiday.
|
203
|
+
##########################################################
|
204
|
+
USVeteransDay = Holiday(
|
205
|
+
"Veterans Day",
|
206
|
+
month=11,
|
207
|
+
day=11,
|
208
|
+
end_date=Timestamp("2022-12-31"),
|
209
|
+
days_of_week=(MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY),
|
210
|
+
observance=sunday_to_monday,
|
211
|
+
)
|
212
|
+
|
213
|
+
################################################
|
214
|
+
# US Thanksgiving Nov 30
|
215
|
+
################################################
|
216
|
+
USThanksgivingDay = Holiday(
|
217
|
+
"Thanksgiving", month=11, day=1, offset=DateOffset(weekday=TH(4))
|
218
|
+
)
|
219
|
+
|
220
|
+
DayAfterThanksgiving2pmEarlyClose = Holiday(
|
221
|
+
"Black Friday",
|
222
|
+
month=11,
|
223
|
+
day=1,
|
224
|
+
offset=[DateOffset(weekday=TH(4)), Day(1)],
|
225
|
+
)
|
226
|
+
|
227
|
+
################################
|
228
|
+
# Christmas Dec 25
|
229
|
+
################################
|
230
|
+
Christmas = Holiday(
|
231
|
+
"Christmas",
|
232
|
+
month=12,
|
233
|
+
day=25,
|
234
|
+
observance=nearest_workday,
|
235
|
+
)
|
236
|
+
|
237
|
+
ChristmasEve2pmEarlyClose = Holiday(
|
238
|
+
"Christmas Eve",
|
239
|
+
month=12,
|
240
|
+
day=25,
|
241
|
+
observance=previous_workday,
|
242
|
+
)
|
243
|
+
|
244
|
+
# When Christmas is on a Saturday it is observed on Friday the 24th
|
245
|
+
# Early close on Thursday 23rd
|
246
|
+
ChristmasEveThursday2pmEarlyClose = Holiday(
|
247
|
+
"Christmas Eve on Thursday",
|
248
|
+
month=12,
|
249
|
+
day=23,
|
250
|
+
days_of_week=(THURSDAY,),
|
251
|
+
)
|
252
|
+
|
253
|
+
############################################################################
|
254
|
+
# UK Specific Holidays
|
255
|
+
############################################################################
|
256
|
+
|
257
|
+
# Remarkably, in 2022 SIFMA recommended NO new year's day observance in the US (Saturday)
|
258
|
+
# but in the UK it was observed on Monday requiring a different rule
|
259
|
+
UKNewYearsDay = Holiday(
|
260
|
+
"New Years Day",
|
261
|
+
month=1,
|
262
|
+
day=1,
|
263
|
+
observance=next_monday,
|
264
|
+
)
|
265
|
+
|
266
|
+
UKGoodFriday = Holiday("Good Friday", month=1, day=1, offset=[Easter(), Day(-2)])
|
267
|
+
|
268
|
+
UKEasterMonday = Holiday("Easter Monday", month=1, day=1, offset=[Easter(), Day(+1)])
|
269
|
+
|
270
|
+
# Observed first Monday in May
|
271
|
+
UKMayDay = Holiday(
|
272
|
+
"May Day",
|
273
|
+
month=5,
|
274
|
+
day=1,
|
275
|
+
offset=DateOffset(weekday=MO(1)),
|
276
|
+
)
|
277
|
+
|
278
|
+
# Almost always follows US Memorial Day except for
|
279
|
+
UKSpringBankAdHoc = [
|
280
|
+
Timestamp("2022-06-02", tz="UTC"),
|
281
|
+
]
|
282
|
+
|
283
|
+
UKPlatinumJubilee2022 = [
|
284
|
+
Timestamp("2022-06-03", tz="UTC"),
|
285
|
+
]
|
286
|
+
|
287
|
+
# Observed last Monday in August in England, Wales, and Northern Ireland
|
288
|
+
# Observed first Monday in August in Scotland
|
289
|
+
# Coded as last Monday
|
290
|
+
# https://www.timeanddate.com/holidays/uk/summer-bank-holiday
|
291
|
+
UKSummerBank = Holiday(
|
292
|
+
"Summer Bank Holiday",
|
293
|
+
month=8,
|
294
|
+
day=30,
|
295
|
+
offset=DateOffset(weekday=MO(-1)),
|
296
|
+
)
|
297
|
+
|
298
|
+
# UK observes Christmas on Tuesday when Boxing Day is on Monday
|
299
|
+
# UK observes Christmas on Monday when Christmas is on Saturday
|
300
|
+
UKChristmaEve = Holiday(
|
301
|
+
"Christmas",
|
302
|
+
month=12,
|
303
|
+
day=24,
|
304
|
+
days_of_week=(FRIDAY,),
|
305
|
+
)
|
306
|
+
|
307
|
+
UKChristmas = Holiday(
|
308
|
+
"Christmas",
|
309
|
+
month=12,
|
310
|
+
day=25,
|
311
|
+
days_of_week=(MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY),
|
312
|
+
)
|
313
|
+
|
314
|
+
# If christmas day is Saturday Monday 27th is a holiday
|
315
|
+
# If christmas day is sunday the Tuesday 27th is a holiday
|
316
|
+
UKWeekendChristmas = Holiday(
|
317
|
+
"Weekend Christmas",
|
318
|
+
month=12,
|
319
|
+
day=27,
|
320
|
+
days_of_week=(MONDAY, TUESDAY),
|
321
|
+
)
|
322
|
+
|
323
|
+
# Boxing day
|
324
|
+
UKBoxingDay = Holiday(
|
325
|
+
"Boxing Day",
|
326
|
+
month=12,
|
327
|
+
day=26,
|
328
|
+
days_of_week=(MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY),
|
329
|
+
)
|
330
|
+
|
331
|
+
# If boxing day is saturday then Monday 28th is a holiday
|
332
|
+
# If boxing day is sunday then Tuesday 28th is a holiday
|
333
|
+
UKWeekendBoxingDay = Holiday(
|
334
|
+
"Weekend Boxing Day",
|
335
|
+
month=12,
|
336
|
+
day=28,
|
337
|
+
days_of_week=(MONDAY, TUESDAY),
|
338
|
+
)
|