vacanza / python-holidays

Generate and work with holidays in Python
https://pypi.org/project/holidays
MIT License
1.39k stars 447 forks source link

Holidays for UK not returning all holidays #1803

Closed satheashwin closed 1 month ago

satheashwin commented 1 month ago

I am trying to execute the below code

Print all the holidays in UnitedKingdom in year

for i in holidays.UK(years=2024).items(): print(i)

and I am getting only 6 holidays (datetime.date(2024, 1, 1), "New Year's Day") (datetime.date(2024, 12, 25), 'Christmas Day') (datetime.date(2024, 12, 26), 'Boxing Day') (datetime.date(2024, 3, 29), 'Good Friday') (datetime.date(2024, 5, 6), 'May Day') (datetime.date(2024, 5, 27), 'Spring Bank Holiday')

Its not returning Easter Monday or Summer Bank holidays

satheashwin commented 1 month ago

I think I need to use holidays.UK(years=2024, subdiv="ENG")

satheashwin commented 1 month ago

Closing the issue as it works with the above