holidays 0.84__py3-none-any.whl → 0.85__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- holidays/__init__.py +0 -2
- holidays/calendars/__init__.py +0 -2
- holidays/constants.py +0 -2
- holidays/countries/__init__.py +0 -2
- holidays/countries/aland_islands.py +4 -4
- holidays/countries/american_samoa.py +4 -4
- holidays/countries/azerbaijan.py +2 -0
- holidays/countries/china.py +10 -1
- holidays/countries/ecuador.py +12 -4
- holidays/countries/french_guiana.py +4 -4
- holidays/countries/french_polynesia.py +4 -4
- holidays/countries/french_southern_territories.py +4 -4
- holidays/countries/guadeloupe.py +4 -4
- holidays/countries/guam.py +4 -4
- holidays/countries/marshall_islands.py +8 -6
- holidays/countries/martinique.py +4 -4
- holidays/countries/mauritania.py +2 -4
- holidays/countries/mayotte.py +4 -4
- holidays/countries/new_caledonia.py +4 -4
- holidays/countries/northern_mariana_islands.py +4 -4
- holidays/countries/puerto_rico.py +4 -4
- holidays/countries/reunion.py +4 -4
- holidays/countries/saint_barthelemy.py +4 -4
- holidays/countries/saint_martin.py +4 -4
- holidays/countries/saint_pierre_and_miquelon.py +4 -4
- holidays/countries/samoa.py +1 -3
- holidays/countries/svalbard_and_jan_mayen.py +4 -4
- holidays/countries/thailand.py +4 -1
- holidays/countries/turkey.py +7 -4
- holidays/countries/united_states.py +4 -0
- holidays/countries/united_states_minor_outlying_islands.py +4 -4
- holidays/countries/united_states_virgin_islands.py +4 -4
- holidays/countries/wallis_and_futuna.py +4 -4
- holidays/financial/__init__.py +1 -3
- holidays/financial/ice_futures_europe.py +6 -2
- holidays/financial/national_stock_exchange_of_india.py +141 -38
- holidays/groups/__init__.py +0 -2
- holidays/locale/en_IN/LC_MESSAGES/XNSE.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/EC.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/US.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/XNSE.mo +0 -0
- holidays/locale/es/LC_MESSAGES/EC.mo +0 -0
- holidays/locale/hi/LC_MESSAGES/XNSE.mo +0 -0
- holidays/locale/th/LC_MESSAGES/US.mo +0 -0
- holidays/locale/tr/LC_MESSAGES/TR.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/EC.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/TR.mo +0 -0
- holidays/mixins/__init__.py +0 -2
- holidays/registry.py +1 -1
- holidays/version.py +1 -1
- {holidays-0.84.dist-info → holidays-0.85.dist-info}/METADATA +2 -2
- {holidays-0.84.dist-info → holidays-0.85.dist-info}/RECORD +57 -57
- {holidays-0.84.dist-info → holidays-0.85.dist-info}/licenses/CONTRIBUTORS +2 -0
- {holidays-0.84.dist-info → holidays-0.85.dist-info}/WHEEL +0 -0
- {holidays-0.84.dist-info → holidays-0.85.dist-info}/licenses/LICENSE +0 -0
- {holidays-0.84.dist-info → holidays-0.85.dist-info}/top_level.txt +0 -0
holidays/countries/thailand.py
CHANGED
|
@@ -145,6 +145,7 @@ class Thailand(ObservedHolidayBase, InternationalHolidays, StaticHolidays, ThaiC
|
|
|
145
145
|
* <https://web.archive.org/web/20250428135456/http://mdc.library.mju.ac.th/article/57695/297565/367757.pdf>
|
|
146
146
|
* <https://web.archive.org/web/20250428140422/https://resolution.soc.go.th/PDF_UPLOAD/2510/932141.pdf>
|
|
147
147
|
* <https://web.archive.org/web/20161028001043/http://www.myhora.com:80/ปฏิทิน/ปฏิทิน-พ.ศ.2475.aspx>
|
|
148
|
+
* <https://web.archive.org/web/20251108075053/https://pridi.or.th/th/content/2024/05/1954>
|
|
148
149
|
* [Royal Thai Armed Forces Day](https://th.wikipedia.org/wiki/วันกองทัพไทย)
|
|
149
150
|
* [Teacher's Day](https://web.archive.org/web/20250117105542/http://event.sanook.com/day/teacher-day/)
|
|
150
151
|
|
|
@@ -889,8 +890,9 @@ class Thailand(ObservedHolidayBase, InternationalHolidays, StaticHolidays, ThaiC
|
|
|
889
890
|
2023: (MAY, 17),
|
|
890
891
|
2024: (MAY, 10),
|
|
891
892
|
2025: (MAY, 9),
|
|
893
|
+
2026: (MAY, 13),
|
|
892
894
|
}
|
|
893
|
-
if 1960 <= self._year <=
|
|
895
|
+
if 1960 <= self._year <= 2026 and self._year != 1999:
|
|
894
896
|
self._add_observed(
|
|
895
897
|
# Royal Ploughing Ceremony.
|
|
896
898
|
self._add_holiday(tr("วันพืชมงคล"), raeknakhwan_dates.get(self._year))
|
|
@@ -1136,6 +1138,7 @@ class ThailandStaticHolidays:
|
|
|
1136
1138
|
),
|
|
1137
1139
|
2026: (JAN, 2, thai_bridge_public_holiday),
|
|
1138
1140
|
}
|
|
1141
|
+
# Royal Ploughing Ceremony.
|
|
1139
1142
|
special_workday_holidays = {1999: (MAY, 14, tr("วันพืชมงคล"))}
|
|
1140
1143
|
|
|
1141
1144
|
special_public_holidays_observed = {
|
holidays/countries/turkey.py
CHANGED
|
@@ -24,8 +24,8 @@ class Turkey(HolidayBase, InternationalHolidays, IslamicHolidays, StaticHolidays
|
|
|
24
24
|
|
|
25
25
|
References:
|
|
26
26
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Turkey>
|
|
27
|
-
* [Law 2739](https://web.archive.org/web/20250102114014/https://www5.tbmm.gov.tr/tutanaklar/KANUNLAR_KARARLAR/kanuntbmmc015/kanuntbmmc015/kanuntbmmc01502739.pdf)
|
|
28
|
-
* [Law 2429](https://web.archive.org/web/20250121111504/http://www.mevzuat.gov.tr/MevzuatMetin/1.5.2429.pdf)
|
|
27
|
+
* [Law 2739 of May 27, 1935](https://web.archive.org/web/20250102114014/https://www5.tbmm.gov.tr/tutanaklar/KANUNLAR_KARARLAR/kanuntbmmc015/kanuntbmmc015/kanuntbmmc01502739.pdf)
|
|
28
|
+
* [Law 2429 of March 19, 1981](https://web.archive.org/web/20250121111504/http://www.mevzuat.gov.tr/MevzuatMetin/1.5.2429.pdf)
|
|
29
29
|
* [Hijri calendar holidays](https://web.archive.org/web/20250415045516/https://vakithesaplama.diyanet.gov.tr/hicriden_miladiye.php)
|
|
30
30
|
"""
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ class Turkey(HolidayBase, InternationalHolidays, IslamicHolidays, StaticHolidays
|
|
|
35
35
|
estimated_label = tr("%s (tahmini)")
|
|
36
36
|
supported_categories = (HALF_DAY, PUBLIC)
|
|
37
37
|
supported_languages = ("en_US", "tr", "uk")
|
|
38
|
-
# Law 2739 of 27
|
|
38
|
+
# Law 2739 of May 27, 1935.
|
|
39
39
|
start_year = 1936
|
|
40
40
|
|
|
41
41
|
def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
|
|
@@ -64,7 +64,10 @@ class Turkey(HolidayBase, InternationalHolidays, IslamicHolidays, StaticHolidays
|
|
|
64
64
|
else tr("Ulusal Egemenlik Bayramı")
|
|
65
65
|
)
|
|
66
66
|
|
|
67
|
-
if self._year
|
|
67
|
+
if self._year <= 1980:
|
|
68
|
+
# Spring Day.
|
|
69
|
+
self._add_labor_day(tr("Bahar Bayramı"))
|
|
70
|
+
elif self._year >= 2009:
|
|
68
71
|
# Labour and Solidarity Day.
|
|
69
72
|
self._add_labor_day(tr("Emek ve Dayanışma Günü"))
|
|
70
73
|
|
|
@@ -1281,6 +1281,10 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
1281
1281
|
# Presidents' Day.
|
|
1282
1282
|
self._add_holiday_3rd_mon_of_feb(tr("Presidents' Day"))
|
|
1283
1283
|
|
|
1284
|
+
if self._year >= 2014:
|
|
1285
|
+
# Native American Heritage Day.
|
|
1286
|
+
self._add_holiday_1_day_past_4th_thu_of_nov(tr("Native American Heritage Day"))
|
|
1287
|
+
|
|
1284
1288
|
def _populate_subdiv_wi_public_holidays(self):
|
|
1285
1289
|
if self._year >= 1976:
|
|
1286
1290
|
# Susan B. Anthony Day.
|
|
@@ -14,7 +14,7 @@ from holidays.countries.united_states import UnitedStates
|
|
|
14
14
|
from holidays.mixins.child_entity import ChildEntity
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class UnitedStatesMinorOutlyingIslands(ChildEntity, UnitedStates):
|
|
18
18
|
"""United States Minor Outlying Islands holidays.
|
|
19
19
|
|
|
20
20
|
Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1.
|
|
@@ -27,13 +27,13 @@ class HolidaysUM(ChildEntity, UnitedStates):
|
|
|
27
27
|
start_year = 1857
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class UnitedStatesMinorOutlyingIslands
|
|
30
|
+
class HolidaysUM(UnitedStatesMinorOutlyingIslands):
|
|
31
31
|
pass
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
class UM(
|
|
34
|
+
class UM(UnitedStatesMinorOutlyingIslands):
|
|
35
35
|
pass
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class UMI(
|
|
38
|
+
class UMI(UnitedStatesMinorOutlyingIslands):
|
|
39
39
|
pass
|
|
@@ -14,7 +14,7 @@ from holidays.countries.united_states import UnitedStates
|
|
|
14
14
|
from holidays.mixins.child_entity import ChildEntity
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class UnitedStatesVirginIslands(ChildEntity, UnitedStates):
|
|
18
18
|
"""United States Virgin Islands (the) holidays.
|
|
19
19
|
|
|
20
20
|
Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1.
|
|
@@ -27,13 +27,13 @@ class HolidaysVI(ChildEntity, UnitedStates):
|
|
|
27
27
|
start_year = 1918
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class UnitedStatesVirginIslands
|
|
30
|
+
class HolidaysVI(UnitedStatesVirginIslands):
|
|
31
31
|
pass
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
class VI(
|
|
34
|
+
class VI(UnitedStatesVirginIslands):
|
|
35
35
|
pass
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class VIR(
|
|
38
|
+
class VIR(UnitedStatesVirginIslands):
|
|
39
39
|
pass
|
|
@@ -14,7 +14,7 @@ from holidays.countries.france import France
|
|
|
14
14
|
from holidays.mixins.child_entity import ChildEntity
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class WallisAndFutuna(ChildEntity, France):
|
|
18
18
|
"""Wallis and Futuna holidays.
|
|
19
19
|
|
|
20
20
|
Alias of a French subdivision that is also officially assigned
|
|
@@ -31,13 +31,13 @@ class HolidaysWF(ChildEntity, France):
|
|
|
31
31
|
start_year = 1962
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
class WallisAndFutuna
|
|
34
|
+
class HolidaysWF(WallisAndFutuna):
|
|
35
35
|
pass
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class WF(
|
|
38
|
+
class WF(WallisAndFutuna):
|
|
39
39
|
pass
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
class WLF(
|
|
42
|
+
class WLF(WallisAndFutuna):
|
|
43
43
|
pass
|
holidays/financial/__init__.py
CHANGED
|
@@ -10,11 +10,9 @@
|
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
11
11
|
# License: MIT (see LICENSE file)
|
|
12
12
|
|
|
13
|
-
# ruff: noqa: F401
|
|
14
|
-
|
|
15
13
|
from holidays.financial.brasil_bolsa_balcao import BrasilBolsaBalcao, BVMF, B3
|
|
16
14
|
from holidays.financial.european_central_bank import EuropeanCentralBank, XECB, ECB, TAR
|
|
17
|
-
from holidays.financial.ice_futures_europe import ICEFuturesEurope, IFEU
|
|
15
|
+
from holidays.financial.ice_futures_europe import IceFuturesEurope, ICEFuturesEurope, IFEU
|
|
18
16
|
from holidays.financial.national_stock_exchange_of_india import (
|
|
19
17
|
NationalStockExchangeOfIndia,
|
|
20
18
|
XNSE,
|
|
@@ -14,7 +14,7 @@ from holidays.groups import ChristianHolidays, InternationalHolidays
|
|
|
14
14
|
from holidays.observed_holiday_base import ObservedHolidayBase, SAT_TO_NONE, SUN_TO_NEXT_MON
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class IceFuturesEurope(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
18
18
|
"""ICE Futures Europe holidays.
|
|
19
19
|
|
|
20
20
|
References:
|
|
@@ -41,5 +41,9 @@ class ICEFuturesEurope(ObservedHolidayBase, ChristianHolidays, InternationalHoli
|
|
|
41
41
|
self._move_holiday(self._add_christmas_day("Christmas Day"))
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
class
|
|
44
|
+
class ICEFuturesEurope(IceFuturesEurope):
|
|
45
|
+
pass
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class IFEU(IceFuturesEurope):
|
|
45
49
|
pass
|
|
@@ -13,13 +13,18 @@
|
|
|
13
13
|
from gettext import gettext as tr
|
|
14
14
|
|
|
15
15
|
from holidays.calendars import _CustomHinduHolidays, _CustomIslamicHolidays
|
|
16
|
-
from holidays.calendars.gregorian import MAR, APR, MAY, JUN, JUL,
|
|
17
|
-
from holidays.groups import
|
|
16
|
+
from holidays.calendars.gregorian import JAN, FEB, MAR, APR, MAY, JUN, JUL, SEP, OCT, NOV, DEC
|
|
17
|
+
from holidays.groups import (
|
|
18
|
+
ChristianHolidays,
|
|
19
|
+
HinduCalendarHolidays,
|
|
20
|
+
IslamicHolidays,
|
|
21
|
+
StaticHolidays,
|
|
22
|
+
)
|
|
18
23
|
from holidays.observed_holiday_base import ObservedHolidayBase, SAT_TO_NONE, SUN_TO_NONE
|
|
19
24
|
|
|
20
25
|
|
|
21
26
|
class NationalStockExchangeOfIndia(
|
|
22
|
-
ObservedHolidayBase, HinduCalendarHolidays, ChristianHolidays, IslamicHolidays
|
|
27
|
+
ObservedHolidayBase, HinduCalendarHolidays, ChristianHolidays, IslamicHolidays, StaticHolidays
|
|
23
28
|
):
|
|
24
29
|
"""National Stock Exchange of India (NSE) holidays.
|
|
25
30
|
|
|
@@ -27,6 +32,27 @@ class NationalStockExchangeOfIndia(
|
|
|
27
32
|
* <https://web.archive.org/web/20250821175252/https://www.nseindia.com/resources/exchange-communication-circulars>
|
|
28
33
|
|
|
29
34
|
Historical data:
|
|
35
|
+
* [2001](https://archive.org/details/nsearchives.nseindia.comcontentcircularscmtr2189.wri)
|
|
36
|
+
* [2002](https://archive.org/details/cmtr3058)
|
|
37
|
+
* [2003](https://web.archive.org/web/20250904042405/https://nsearchives.nseindia.com/content/circulars/cmtr3809.htm)
|
|
38
|
+
* [2004](https://archive.org/details/nsearchives.nseindia.comcontentcircularscmtr4645.htm)
|
|
39
|
+
* [2005](https://web.archive.org/web/20250904043234/https://nsearchives.nseindia.com/content/circulars/cmtr5633.htm)
|
|
40
|
+
* [2006](https://archive.org/details/nsearchives.nseindia.comcontentcircularscmtr6946.htm)
|
|
41
|
+
* [2007](https://archive.org/details/nsearchives.nseindia.comcontentcircularscmtr8182.pdf)
|
|
42
|
+
* [2008](https://archive.org/details/nsearchives.nseindia.comcontentcircularscmtr9908.htm)
|
|
43
|
+
* [2009](https://archive.org/details/nsearchives.nseindia.comcontentcircularscmtr11733.htm)
|
|
44
|
+
* [2010](https://archive.org/details/nsearchives.nseindia.comcontentcircularscmtr13713.pdf)
|
|
45
|
+
* [2011](https://archive.org/details/nsearchives.nseindia.comcontentcircularscmtr16348.pdf)
|
|
46
|
+
* [2012](https://archive.org/details/nsearchives.nseindia.comcontentcircularscmtr19539.pdf)
|
|
47
|
+
* [2013](https://archive.org/details/nsearchives.nseindia.comcontentcircularscmtr22317.pdf)
|
|
48
|
+
* [2014](https://archive.org/details/nsearchives.nseindia.comcontentcircularscmtr25326.pdf)
|
|
49
|
+
* [2015](https://archive.org/details/nsearchives.nseindia.comcontentcircularscmtr28337.pdf)
|
|
50
|
+
* [2016](https://web.archive.org/web/20250903152854/https://nsearchives.nseindia.com/content/circulars/CMTR31297.pdf)
|
|
51
|
+
* [2017](https://web.archive.org/web/20250903152829/https://nsearchives.nseindia.com/content/circulars/CMTR33746.pdf)
|
|
52
|
+
* [2018](https://web.archive.org/web/20250903152307/https://nsearchives.nseindia.com/content/circulars/CMTR36475.pdf)
|
|
53
|
+
* [2019](https://archive.org/details/nsearchives.nseindia.comcontentcircularscmtr39612.pdf)
|
|
54
|
+
* [2020](https://web.archive.org/web/20250903152140/https://nsearchives.nseindia.com/content/circulars/CMTR42877.pdf)
|
|
55
|
+
* [2021](https://web.archive.org/web/20250903152041/https://nsearchives.nseindia.com/content/circulars/CMTR46623.pdf)
|
|
30
56
|
* [2022](https://web.archive.org/web/20250821071611/https://nsearchives.nseindia.com/content/circulars/CMTR50560.pdf)
|
|
31
57
|
* [2023](https://web.archive.org/web/20250821071635/https://nsearchives.nseindia.com/content/circulars/CMTR54757.pdf)
|
|
32
58
|
* [2024](https://web.archive.org/web/20250821071650/https://nsearchives.nseindia.com/content/circulars/CMTR59722.pdf)
|
|
@@ -46,6 +72,9 @@ class NationalStockExchangeOfIndia(
|
|
|
46
72
|
islamic_show_estimated:
|
|
47
73
|
Whether to add "estimated" label to Islamic holidays name
|
|
48
74
|
if holiday date is estimated.
|
|
75
|
+
|
|
76
|
+
In India, the dates of the Islamic calendar usually fall a day later than
|
|
77
|
+
the corresponding dates in the Umm al-Qura calendar.
|
|
49
78
|
"""
|
|
50
79
|
ChristianHolidays.__init__(self)
|
|
51
80
|
HinduCalendarHolidays.__init__(self, cls=NationalStockExchangeOfIndiaHinduHolidays)
|
|
@@ -53,7 +82,9 @@ class NationalStockExchangeOfIndia(
|
|
|
53
82
|
self,
|
|
54
83
|
cls=NationalStockExchangeOfIndiaIslamicHolidays,
|
|
55
84
|
show_estimated=islamic_show_estimated,
|
|
85
|
+
calendar_delta_days=+1,
|
|
56
86
|
)
|
|
87
|
+
StaticHolidays.__init__(self, cls=NationalStockExchangeOfIndiaStaticHolidays)
|
|
57
88
|
kwargs.setdefault("observed_rule", SAT_TO_NONE + SUN_TO_NONE)
|
|
58
89
|
super().__init__(*args, **kwargs)
|
|
59
90
|
|
|
@@ -64,16 +95,23 @@ class NationalStockExchangeOfIndia(
|
|
|
64
95
|
# Good Friday.
|
|
65
96
|
self._add_good_friday(tr("Good Friday"))
|
|
66
97
|
|
|
67
|
-
# Dr.
|
|
98
|
+
# Dr. B. R. Ambedkar Jayanti.
|
|
68
99
|
self._move_holiday(self._add_holiday_apr_14(tr("Dr. Baba Saheb Ambedkar Jayanti")))
|
|
69
100
|
|
|
70
|
-
|
|
71
|
-
|
|
101
|
+
self._move_holiday(
|
|
102
|
+
self._add_holiday_may_1(
|
|
103
|
+
# May Day.
|
|
104
|
+
tr("May Day")
|
|
105
|
+
if 2010 <= self._year <= 2014
|
|
106
|
+
# Maharashtra Day.
|
|
107
|
+
else tr("Maharashtra Day")
|
|
108
|
+
)
|
|
109
|
+
)
|
|
72
110
|
|
|
73
111
|
# Independence Day.
|
|
74
112
|
self._move_holiday(self._add_holiday_aug_15(tr("Independence Day")))
|
|
75
113
|
|
|
76
|
-
#
|
|
114
|
+
# Gandhi Jayanti.
|
|
77
115
|
self._move_holiday(self._add_holiday_oct_2(tr("Mahatma Gandhi Jayanti")))
|
|
78
116
|
|
|
79
117
|
# Christmas Day.
|
|
@@ -81,17 +119,19 @@ class NationalStockExchangeOfIndia(
|
|
|
81
119
|
|
|
82
120
|
# Hindu Calendar Holidays.
|
|
83
121
|
|
|
84
|
-
|
|
85
|
-
|
|
122
|
+
if self._year >= 2007:
|
|
123
|
+
# Maha Shivaratri.
|
|
124
|
+
self._move_holiday(self._add_maha_shivaratri(tr("Maha Shivaratri")))
|
|
86
125
|
|
|
87
126
|
# Holi.
|
|
88
127
|
self._move_holiday(self._add_holi(tr("Holi")))
|
|
89
128
|
|
|
90
|
-
|
|
91
|
-
|
|
129
|
+
if self._year >= 2006:
|
|
130
|
+
# Ram Navami.
|
|
131
|
+
self._move_holiday(self._add_ram_navami(tr("Ram Navami")))
|
|
92
132
|
|
|
93
|
-
|
|
94
|
-
|
|
133
|
+
# Mahavir Jayanti.
|
|
134
|
+
self._move_holiday(self._add_mahavir_jayanti(tr("Mahavir Jayanti")))
|
|
95
135
|
|
|
96
136
|
# Ganesh Chaturthi.
|
|
97
137
|
self._move_holiday(self._add_ganesh_chaturthi(tr("Ganesh Chaturthi")))
|
|
@@ -99,28 +139,35 @@ class NationalStockExchangeOfIndia(
|
|
|
99
139
|
# Dussehra.
|
|
100
140
|
self._move_holiday(self._add_dussehra(tr("Dussehra")))
|
|
101
141
|
|
|
102
|
-
# Diwali
|
|
103
|
-
self._move_holiday(self.
|
|
142
|
+
# Diwali Lakshmi Puja.
|
|
143
|
+
self._move_holiday(self._add_diwali_india(tr("Diwali Laxmi Pujan")))
|
|
104
144
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
# between Diwali Laxmi Pujan and Diwali Balipratipada.
|
|
109
|
-
self._move_holiday(
|
|
110
|
-
self._add_bhai_dooj(name)
|
|
111
|
-
if self._year in {2022, 2023}
|
|
112
|
-
else self._add_govardhan_puja(name)
|
|
113
|
-
)
|
|
145
|
+
if self._year <= 2002 or self._year >= 2011:
|
|
146
|
+
# Diwali Balipratipada.
|
|
147
|
+
self._move_holiday(self._add_govardhan_puja(tr("Diwali Balipratipada")))
|
|
114
148
|
|
|
115
149
|
# Guru Nanak Jayanti.
|
|
116
150
|
self._move_holiday(self._add_guru_nanak_jayanti(tr("Guru Nanak Jayanti")))
|
|
117
151
|
|
|
152
|
+
if 2003 <= self._year <= 2010:
|
|
153
|
+
# Bhai Dooj.
|
|
154
|
+
self._move_holiday(self._add_bhai_dooj(tr("Bhau Bhij")))
|
|
155
|
+
|
|
156
|
+
if 2006 <= self._year <= 2009:
|
|
157
|
+
# Buddha Purnima.
|
|
158
|
+
self._move_holiday(self._add_buddha_purnima(tr("Buddha Purnima")))
|
|
159
|
+
|
|
118
160
|
# Islamic Calendar Holidays.
|
|
119
161
|
|
|
120
162
|
# Ashura.
|
|
121
163
|
for dt in self._add_ashura_day(tr("Muharram")):
|
|
122
164
|
self._move_holiday(dt)
|
|
123
165
|
|
|
166
|
+
if 2006 <= self._year <= 2009:
|
|
167
|
+
# Prophet's Birthday.
|
|
168
|
+
for dt in self._add_mawlid_day(tr("Id-E-Milad-Un-Nabi")):
|
|
169
|
+
self._move_holiday(dt)
|
|
170
|
+
|
|
124
171
|
# Eid al-Fitr.
|
|
125
172
|
for dt in self._add_eid_al_fitr_day(tr("Id-Ul-Fitr (Ramadan Eid)")):
|
|
126
173
|
self._move_holiday(dt)
|
|
@@ -139,31 +186,87 @@ class NSE(NationalStockExchangeOfIndia):
|
|
|
139
186
|
|
|
140
187
|
|
|
141
188
|
class NationalStockExchangeOfIndiaHinduHolidays(_CustomHinduHolidays):
|
|
189
|
+
BUDDHA_PURNIMA_DATES = {
|
|
190
|
+
2008: (MAY, 19),
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
DIWALI_INDIA_DATES = {
|
|
194
|
+
2024: (NOV, 1),
|
|
195
|
+
2025: (OCT, 21),
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
DUSSEHRA_DATES = {
|
|
199
|
+
2003: (OCT, 4),
|
|
200
|
+
2018: (OCT, 18),
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
GOVARDHAN_PUJA_DATES = {
|
|
204
|
+
2001: (NOV, 16),
|
|
205
|
+
2002: (NOV, 6),
|
|
206
|
+
2003: (OCT, 25),
|
|
207
|
+
2006: (OCT, 23),
|
|
208
|
+
2020: (NOV, 16),
|
|
209
|
+
2022: (OCT, 26),
|
|
210
|
+
2023: (NOV, 14),
|
|
211
|
+
}
|
|
212
|
+
|
|
142
213
|
HOLI_DATES = {
|
|
143
214
|
2023: (MAR, 7),
|
|
144
215
|
}
|
|
145
216
|
|
|
217
|
+
MAHAVIR_JAYANTI_DATES = {
|
|
218
|
+
2010: (MAR, 28),
|
|
219
|
+
2016: (APR, 19),
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
RAM_NAVAMI_DATES = {
|
|
223
|
+
2007: (MAR, 27),
|
|
224
|
+
}
|
|
225
|
+
|
|
146
226
|
|
|
147
227
|
class NationalStockExchangeOfIndiaIslamicHolidays(_CustomIslamicHolidays):
|
|
148
|
-
ASHURA_DATES_CONFIRMED_YEARS = (
|
|
228
|
+
ASHURA_DATES_CONFIRMED_YEARS = (2001, 2025)
|
|
149
229
|
ASHURA_DATES = {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
230
|
+
2003: (MAR, 15),
|
|
231
|
+
2006: (FEB, 9),
|
|
232
|
+
2008: (JAN, 19),
|
|
233
|
+
2015: (OCT, 23),
|
|
234
|
+
2018: (SEP, 20),
|
|
154
235
|
}
|
|
155
236
|
|
|
156
|
-
EID_AL_ADHA_DATES_CONFIRMED_YEARS = (
|
|
237
|
+
EID_AL_ADHA_DATES_CONFIRMED_YEARS = (2001, 2025)
|
|
157
238
|
EID_AL_ADHA_DATES = {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
239
|
+
2003: (FEB, 13),
|
|
240
|
+
2005: (JAN, 21),
|
|
241
|
+
2006: (JAN, 11),
|
|
242
|
+
2007: ((JAN, 1), (DEC, 21)),
|
|
243
|
+
2009: (NOV, 27),
|
|
244
|
+
2014: (OCT, 6),
|
|
245
|
+
2015: (SEP, 25),
|
|
246
|
+
2016: (SEP, 13),
|
|
247
|
+
2023: (JUN, 28),
|
|
161
248
|
}
|
|
162
249
|
|
|
163
|
-
EID_AL_FITR_DATES_CONFIRMED_YEARS = (
|
|
250
|
+
EID_AL_FITR_DATES_CONFIRMED_YEARS = (2001, 2025)
|
|
164
251
|
EID_AL_FITR_DATES = {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
252
|
+
2002: (DEC, 7),
|
|
253
|
+
2005: (NOV, 5),
|
|
254
|
+
2006: (OCT, 25),
|
|
255
|
+
2010: (SEP, 10),
|
|
256
|
+
2016: (JUL, 6),
|
|
257
|
+
2021: (MAY, 13),
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
MAWLID_DATES_CONFIRMED_YEARS = (2006, 2009)
|
|
261
|
+
MAWLID_DATES = {
|
|
262
|
+
2008: (MAR, 20),
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
class NationalStockExchangeOfIndiaStaticHolidays:
|
|
267
|
+
"""National Stock Exchange of India (NSE) special holidays."""
|
|
268
|
+
|
|
269
|
+
special_public_holidays = {
|
|
270
|
+
# New Year's Day.
|
|
271
|
+
2010: (JAN, 1, tr("New Year")),
|
|
169
272
|
}
|
holidays/groups/__init__.py
CHANGED
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
11
11
|
# License: MIT (see LICENSE file)
|
|
12
12
|
|
|
13
|
-
# ruff: noqa: F401
|
|
14
|
-
|
|
15
13
|
from holidays.groups.balinese_saka import BalineseSakaCalendarHolidays
|
|
16
14
|
from holidays.groups.buddhist import BuddhistCalendarHolidays
|
|
17
15
|
from holidays.groups.burmese import BurmeseCalendarHolidays
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
holidays/mixins/__init__.py
CHANGED
holidays/registry.py
CHANGED
|
@@ -287,7 +287,7 @@ COUNTRIES: RegistryDict = {
|
|
|
287
287
|
FINANCIAL: RegistryDict = {
|
|
288
288
|
"brasil_bolsa_balcao": ("BrasilBolsaBalcao", "BVMF", "B3"),
|
|
289
289
|
"european_central_bank": ("EuropeanCentralBank", "XECB", "ECB", "TAR"),
|
|
290
|
-
"ice_futures_europe": ("
|
|
290
|
+
"ice_futures_europe": ("IceFuturesEurope", "IFEU", "ICEFuturesEurope"),
|
|
291
291
|
"national_stock_exchange_of_india": ("NationalStockExchangeOfIndia", "XNSE", "NSE"),
|
|
292
292
|
"ny_stock_exchange": ("NewYorkStockExchange", "XNYS", "NYSE"),
|
|
293
293
|
}
|
holidays/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: holidays
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.85
|
|
4
4
|
Summary: Open World Holidays Framework
|
|
5
5
|
Author: Vacanza Team
|
|
6
6
|
Maintainer: Arkadii Yakovets, Panpakorn Siripanich, Serhii Murza
|
|
@@ -185,7 +185,7 @@ any) in brackets, available languages and additional holiday categories. All cou
|
|
|
185
185
|
<td></td>
|
|
186
186
|
</tr>
|
|
187
187
|
<tr>
|
|
188
|
-
<td
|
|
188
|
+
<td>Åland Islands</td>
|
|
189
189
|
<td>AX</td>
|
|
190
190
|
<td>Can also be loaded as country FI, subdivision 01</td>
|
|
191
191
|
<td>en_US, <strong>fi</strong>, sv_FI, th, uk</td>
|