Skip to content

Instantly share code, notes, and snippets.

View AdrianSKazi's full-sized avatar

Adrian SK AdrianSKazi

View GitHub Profile
@AdrianSKazi
AdrianSKazi / polish_holidays.py
Created September 26, 2020 13:01 — forked from sebzur/polish_holidays.py
Python generator for public holidays in Poland
from datetime import date, timedelta
from dateutil import easter
from dateutil.relativedelta import *
def get_holidays(year=2010):
""" Returns Polish hollidays dates (legally considered non-working days) """
easter_sunday = easter.easter(year)
holidays = {'New Year': date(year,1,1),
'Trzech Kroli': date(year,1,6),
'Easter Sunday': easter_sunday,