mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-17 08:40:56 +00:00
update holi and diwali holidays till 2030
Updated holi and diwali holidays till the year 2030. Added a source(link) for Holi dates till 2030.
This commit is contained in:
parent
797fefabaf
commit
0d4a639c4c
1 changed files with 17 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ class India(HolidayBase):
|
|||
name = "Gandhi Jayanti"
|
||||
self[date(year, 10, 2)] = name
|
||||
# --------------------------------
|
||||
# Hindo holidays
|
||||
# Hindu holidays
|
||||
# Diwali
|
||||
# Holi
|
||||
# --------------------------------
|
||||
|
|
@ -249,6 +249,7 @@ class India(HolidayBase):
|
|||
# http://www.theholidayspot.com/diwali/calendar.htm
|
||||
# https://www.timeanddate.com/holidays/india/diwali?starty=
|
||||
# https://www.infoplease.com/calendar-holidays/major-holidays/
|
||||
# https://www.learnreligions.com/when-is-holi-1770208
|
||||
warning_msg = "We only support Diwali and Holi holidays from 2010 to 2025"
|
||||
warnings.warn(warning_msg, Warning)
|
||||
name1 = "Diwali"
|
||||
|
|
@ -301,6 +302,21 @@ class India(HolidayBase):
|
|||
elif year == 2025:
|
||||
self[date(year, 10, 21)] = name1
|
||||
self[date(year, 3, 14)] = name2
|
||||
elif year == 2026:
|
||||
self[date(year, 11, 8)] = name1
|
||||
self[date(year, 3, 3)] = name2
|
||||
elif year == 2027:
|
||||
self[date(year, 10, 29)] = name1
|
||||
self[date(year, 3, 22)] = name2
|
||||
elif year == 2028:
|
||||
self[date(year, 10, 17)] = name1
|
||||
self[date(year, 3, 11)] = name2
|
||||
elif year == 2029:
|
||||
self[date(year, 11, 5)] = name1
|
||||
self[date(year, 2, 28)] = name2
|
||||
elif year == 2030:
|
||||
self[date(year, 10, 26)] = name1
|
||||
self[date(year, 3, 19)] = name2
|
||||
else:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue