Skip to content

Commit

Permalink
Added 2022 exceptions for Whit Monday and Day of German Unity.
Browse files Browse the repository at this point in the history
  • Loading branch information
philtromans authored and gerrymanoim committed May 9, 2022
1 parent 79e1051 commit 3cd22d0
Show file tree
Hide file tree
Showing 3 changed files with 924 additions and 5 deletions.
12 changes: 7 additions & 5 deletions exchange_calendars/exchange_calendar_xfra.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@
# starting in 2015.
WhitMonday2007AdHoc = Timestamp("2007-05-28")

WhitMonday = whit_monday(start_date="2015-01-01")
# Whit Monday and the Day of German Unity have been observed regularly, but in 2022 regular trading took place instead.
# It's unclear if it will be observed in 2023.
WhitMondayUntil2022 = whit_monday(start_date="2015-01-01", end_date="2022-01-01")

DayOfGermanUnity = Holiday(
"Day of German Unity", month=10, day=3, start_date="2014-01-01"
DayOfGermanUnityUntil2022 = Holiday(
"Day of German Unity", month=10, day=3, start_date="2014-01-01", end_date="2022-01-01"
)

# Reformation Day was a German national holiday in 2017.
Expand Down Expand Up @@ -110,8 +112,8 @@ def regular_holidays(self):
GoodFriday,
EasterMonday,
EuropeanLabourDay,
WhitMonday,
DayOfGermanUnity,
WhitMondayUntil2022,
DayOfGermanUnityUntil2022,
ChristmasEve,
Christmas,
BoxingDay,
Expand Down
Loading

0 comments on commit 3cd22d0

Please sign in to comment.