AscensionDay = ascension_day(end_date='2001') WhitMonday = whit_monday(end_date='2002') QueensDay = Holiday( "Queen's Day", month=4, day=30, end_date='2002', ) LabourDay = european_labour_day() ChristmasEve = christmas_eve(days_of_week=WEEKDAYS) Christmas = christmas() BoxingDay = boxing_day() NewYearsEveBefore2002 = new_years_eve(end_date='2002') NewYearsEveInOrAfter2002 = new_years_eve( start_date='2002', days_of_week=WEEKDAYS, ) def holidays(): return [ NewYearsDay, GoodFriday, EasterMonday, AscensionDay, WhitMonday,
"Queen's Birthday", month=6, day=1, offset=DateOffset(weekday=MO(1)), ) LabourDay = Holiday( "Labour Day", month=10, day=1, offset=DateOffset(weekday=MO(4)), ) Christmas = christmas(observance=next_monday) BoxingDay = boxing_day(observance=next_monday_or_tuesday) def holidays(): return [ NewYearsDay, DayAfterNewYearsDay, WaitangiDayNonMondayized, WaitangiDay, GoodFriday, EasterMonday, AnzacDayNonMondayized, AnzacDay, QueensBirthday, LabourDay, Christmas,