holidays 0.84__py3-none-any.whl → 0.86__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/bulgaria.py +208 -50
- holidays/countries/china.py +10 -1
- holidays/countries/ecuador.py +12 -4
- holidays/countries/estonia.py +55 -9
- holidays/countries/french_guiana.py +4 -4
- holidays/countries/french_polynesia.py +4 -4
- holidays/countries/french_southern_territories.py +4 -4
- holidays/countries/gibraltar.py +1 -1
- holidays/countries/guadeloupe.py +4 -4
- holidays/countries/guam.py +4 -4
- holidays/countries/italy.py +489 -167
- 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/mongolia.py +1 -5
- holidays/countries/nepal.py +46 -41
- 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/russia.py +1 -2
- 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/sweden.py +102 -32
- holidays/countries/taiwan.py +3 -6
- holidays/countries/thailand.py +9 -6
- 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/holiday_base.py +51 -23
- holidays/locale/bg/LC_MESSAGES/BG.mo +0 -0
- holidays/locale/en_IN/LC_MESSAGES/XNSE.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/BG.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/EC.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/EE.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/IT.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/NP.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/SE.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TW.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/et/LC_MESSAGES/EE.mo +0 -0
- holidays/locale/hi/LC_MESSAGES/XNSE.mo +0 -0
- holidays/locale/it_IT/LC_MESSAGES/IT.mo +0 -0
- holidays/locale/ne/LC_MESSAGES/NP.mo +0 -0
- holidays/locale/sv/LC_MESSAGES/SE.mo +0 -0
- holidays/locale/th/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/th/LC_MESSAGES/CN.mo +0 -0
- holidays/locale/th/LC_MESSAGES/DK.mo +0 -0
- holidays/locale/th/LC_MESSAGES/ES.mo +0 -0
- holidays/locale/th/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/th/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/th/LC_MESSAGES/NO.mo +0 -0
- holidays/locale/th/LC_MESSAGES/SE.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/th/LC_MESSAGES/US.mo +0 -0
- holidays/locale/th/LC_MESSAGES/VA.mo +0 -0
- holidays/locale/tr/LC_MESSAGES/TR.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/BG.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/EC.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/EE.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/SE.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/TR.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/zh_TW/LC_MESSAGES/TW.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.86.dist-info}/METADATA +7 -7
- {holidays-0.84.dist-info → holidays-0.86.dist-info}/RECORD +94 -90
- {holidays-0.84.dist-info → holidays-0.86.dist-info}/licenses/CONTRIBUTORS +5 -0
- {holidays-0.84.dist-info → holidays-0.86.dist-info}/WHEEL +0 -0
- {holidays-0.84.dist-info → holidays-0.86.dist-info}/licenses/LICENSE +0 -0
- {holidays-0.84.dist-info → holidays-0.86.dist-info}/top_level.txt +0 -0
holidays/countries/sweden.py
CHANGED
|
@@ -10,9 +10,17 @@
|
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
11
11
|
# License: MIT (see LICENSE file)
|
|
12
12
|
|
|
13
|
+
from datetime import date
|
|
13
14
|
from gettext import gettext as tr
|
|
14
15
|
|
|
15
|
-
from holidays.calendars.gregorian import
|
|
16
|
+
from holidays.calendars.gregorian import (
|
|
17
|
+
MAR,
|
|
18
|
+
SUN,
|
|
19
|
+
_get_all_sundays,
|
|
20
|
+
_get_nth_weekday_from,
|
|
21
|
+
_timedelta,
|
|
22
|
+
)
|
|
23
|
+
from holidays.constants import BANK, OPTIONAL, PUBLIC
|
|
16
24
|
from holidays.groups import ChristianHolidays, InternationalHolidays
|
|
17
25
|
from holidays.holiday_base import HolidayBase
|
|
18
26
|
|
|
@@ -22,21 +30,25 @@ class Sweden(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
22
30
|
|
|
23
31
|
References:
|
|
24
32
|
* <https://sv.wikipedia.org/wiki/Helgdagar_i_Sverige>
|
|
25
|
-
* <https://
|
|
33
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Sweden>
|
|
34
|
+
* [Act 1952:48](https://web.archive.org/web/20250518071409/https://blogs.loc.gov/law/2023/06/midsommar-becomes-weekend-holiday-in-sweden-in-1953-pic-of-the-week/)
|
|
35
|
+
* [Act 1989:253](https://web.archive.org/web/20250414065223/https://www.riksdagen.se/sv/dokument-lagar/dokument/svensk-forfattningssamling/lag-1989253-om-allmanna-helgdagar_sfs-1989-253)
|
|
26
36
|
* <https://sv.wikipedia.org/wiki/Första_maj>
|
|
27
37
|
* <https://sv.wikipedia.org/wiki/Sveriges_nationaldag>
|
|
28
38
|
* <https://sv.wikipedia.org/wiki/Midsommarafton>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
Note that holidays falling on a sunday is "lost", it will not be moved
|
|
32
|
-
to another day to make up for the collision.
|
|
39
|
+
* [Bank Holidays 2025](https://web.archive.org/web/20250811112642/https://www.riksbank.se/sv/press-och-publicerat/kalender/helgdagar-2025/)
|
|
33
40
|
|
|
34
41
|
In Sweden, ALL sundays are considered a holiday.
|
|
35
42
|
Initialize this class with `include_sundays=False` to not include sundays as a holiday.
|
|
36
43
|
"""
|
|
37
44
|
|
|
45
|
+
# %s (from 2pm).
|
|
46
|
+
begin_time_label = tr("%s (från kl. 14.00)")
|
|
38
47
|
country = "SE"
|
|
39
48
|
default_language = "sv"
|
|
49
|
+
# Act 1952:48.
|
|
50
|
+
start_year = 1953
|
|
51
|
+
supported_categories = (BANK, OPTIONAL, PUBLIC)
|
|
40
52
|
supported_languages = ("en_US", "sv", "th", "uk")
|
|
41
53
|
|
|
42
54
|
def __init__(self, *args, include_sundays: bool = True, **kwargs):
|
|
@@ -57,9 +69,18 @@ class Sweden(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
57
69
|
# Epiphany.
|
|
58
70
|
self._add_epiphany_day(tr("Trettondedag jul"))
|
|
59
71
|
|
|
60
|
-
if self._year <=
|
|
61
|
-
# Feast of the Annunciation
|
|
62
|
-
|
|
72
|
+
if self._year <= 1989:
|
|
73
|
+
# According to Act 1952:48, Feast of the Annunciation is
|
|
74
|
+
# "on the Sunday between March 22 and 28 or, if this Sunday is Palm Sunday
|
|
75
|
+
# or Easter Sunday, on the Sunday before Palm Sunday".
|
|
76
|
+
dt = _get_nth_weekday_from(1, SUN, date(self._year, MAR, 22))
|
|
77
|
+
self._add_holiday(
|
|
78
|
+
# Feast of the Annunciation.
|
|
79
|
+
tr("Marie bebådelsedag"),
|
|
80
|
+
_timedelta(self._easter_sunday, -14)
|
|
81
|
+
if dt == _timedelta(self._easter_sunday, -7) or dt == self._easter_sunday
|
|
82
|
+
else dt,
|
|
83
|
+
)
|
|
63
84
|
|
|
64
85
|
# Good Friday.
|
|
65
86
|
self._add_good_friday(tr("Långfredagen"))
|
|
@@ -70,16 +91,15 @@ class Sweden(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
70
91
|
# Easter Monday.
|
|
71
92
|
self._add_easter_monday(tr("Annandag påsk"))
|
|
72
93
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
self._add_labor_day(tr("Första maj"))
|
|
94
|
+
# May Day.
|
|
95
|
+
self._add_labor_day(tr("Första maj"))
|
|
76
96
|
|
|
77
97
|
# Ascension Day.
|
|
78
98
|
self._add_ascension_thursday(tr("Kristi himmelsfärdsdag"))
|
|
79
99
|
|
|
80
100
|
if self._year >= 2005:
|
|
81
|
-
# National Day
|
|
82
|
-
self._add_holiday_jun_6(tr("
|
|
101
|
+
# National Day.
|
|
102
|
+
self._add_holiday_jun_6(tr("Nationaldagen"))
|
|
83
103
|
|
|
84
104
|
# Whit Sunday.
|
|
85
105
|
self._add_whit_sunday(tr("Pingstdagen"))
|
|
@@ -88,23 +108,11 @@ class Sweden(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
88
108
|
# Whit Monday.
|
|
89
109
|
self._add_whit_monday(tr("Annandag pingst"))
|
|
90
110
|
|
|
91
|
-
# Midsummer Eve.
|
|
92
|
-
name = tr("Midsommarafton")
|
|
93
|
-
dt = (
|
|
94
|
-
self._add_holiday_1st_fri_from_jun_19(name)
|
|
95
|
-
if self._year >= 1953
|
|
96
|
-
else self._add_holiday_jun_23(name)
|
|
97
|
-
)
|
|
98
|
-
|
|
99
111
|
# Midsummer Day.
|
|
100
|
-
self.
|
|
112
|
+
self._add_holiday_1st_sat_from_jun_20(tr("Midsommardagen"))
|
|
101
113
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
self._add_holiday_1st_sat_from_oct_31(tr("Alla helgons dag"))
|
|
105
|
-
|
|
106
|
-
# Christmas Eve.
|
|
107
|
-
self._add_christmas_eve(tr("Julafton"))
|
|
114
|
+
# All Saints' Day.
|
|
115
|
+
self._add_holiday_1st_sat_from_oct_31(tr("Alla helgons dag"))
|
|
108
116
|
|
|
109
117
|
# Christmas Day.
|
|
110
118
|
self._add_christmas_day(tr("Juldagen"))
|
|
@@ -112,15 +120,77 @@ class Sweden(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
112
120
|
# Second Day of Christmas.
|
|
113
121
|
self._add_christmas_day_two(tr("Annandag jul"))
|
|
114
122
|
|
|
115
|
-
# New Year's Eve.
|
|
116
|
-
self._add_new_years_eve(tr("Nyårsafton"))
|
|
117
|
-
|
|
118
123
|
# Optionally add all Sundays of the year.
|
|
119
124
|
if self.include_sundays:
|
|
120
125
|
for dt in _get_all_sundays(self._year):
|
|
121
126
|
# Sunday.
|
|
122
127
|
self._add_holiday(tr("Söndag"), dt)
|
|
123
128
|
|
|
129
|
+
def _populate_common(self):
|
|
130
|
+
"""Populate holidays that are both optional and bank holidays."""
|
|
131
|
+
|
|
132
|
+
# Twelfth Night.
|
|
133
|
+
self._add_holiday_jan_5(self.tr(self.begin_time_label) % self.tr("Trettondagsafton"))
|
|
134
|
+
|
|
135
|
+
# Maundy Thursday.
|
|
136
|
+
self._add_holy_thursday(self.tr(self.begin_time_label) % self.tr("Skärtorsdagen"))
|
|
137
|
+
|
|
138
|
+
# Walpurgis Night.
|
|
139
|
+
self._add_holiday_apr_30(self.tr(self.begin_time_label) % self.tr("Valborgsmässoafton"))
|
|
140
|
+
|
|
141
|
+
# Midsummer Eve.
|
|
142
|
+
self._add_holiday_1st_fri_from_jun_19(tr("Midsommarafton"))
|
|
143
|
+
|
|
144
|
+
self._add_holiday_1st_fri_from_oct_30(
|
|
145
|
+
# All Saints' Eve.
|
|
146
|
+
self.tr(self.begin_time_label) % self.tr("Allahelgonsafton")
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
# Christmas Eve.
|
|
150
|
+
self._add_christmas_eve(tr("Julafton"))
|
|
151
|
+
|
|
152
|
+
# New Year's Eve.
|
|
153
|
+
self._add_new_years_eve(tr("Nyårsafton"))
|
|
154
|
+
|
|
155
|
+
def _populate_bank_holidays(self):
|
|
156
|
+
self._populate_common()
|
|
157
|
+
|
|
158
|
+
self._add_holiday_38_days_past_easter(
|
|
159
|
+
# Day before Ascension Day.
|
|
160
|
+
self.tr(self.begin_time_label) % self.tr("Dag före Kristi himmelsfärdsdag")
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
self._add_holiday_1st_thu_from_jun_18(
|
|
164
|
+
# Day before Midsummer Eve.
|
|
165
|
+
self.tr(self.begin_time_label) % self.tr("Dag före Midsommarafton")
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
self._add_holiday_47_days_past_easter(
|
|
169
|
+
# Day before Whitsun Eve.
|
|
170
|
+
self.tr(self.begin_time_label) % self.tr("Dag före Pingstafton")
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
# Day before Christmas Eve.
|
|
174
|
+
self._add_holiday_dec_23(self.tr(self.begin_time_label) % self.tr("Dag före Julafton"))
|
|
175
|
+
|
|
176
|
+
# Day before New Year's Eve.
|
|
177
|
+
self._add_holiday_dec_30(self.tr(self.begin_time_label) % self.tr("Dag före Nyårsafton"))
|
|
178
|
+
|
|
179
|
+
def _populate_optional_holidays(self):
|
|
180
|
+
self._populate_common()
|
|
181
|
+
|
|
182
|
+
# Holy Saturday.
|
|
183
|
+
self._add_holy_saturday(tr("Påskafton"))
|
|
184
|
+
|
|
185
|
+
# Days between a holiday and a weekend are in Swedish called "klämdagar" (squeeze days).
|
|
186
|
+
# There is one permanent "klämdag" every year - Friday after Ascension Day.
|
|
187
|
+
|
|
188
|
+
# Squeeze day.
|
|
189
|
+
self._add_holiday_40_days_past_easter(tr("Klämdag"))
|
|
190
|
+
|
|
191
|
+
# Whitsun Eve.
|
|
192
|
+
self._add_holiday_48_days_past_easter(tr("Pingstafton"))
|
|
193
|
+
|
|
124
194
|
|
|
125
195
|
class SE(Sweden):
|
|
126
196
|
pass
|
holidays/countries/taiwan.py
CHANGED
|
@@ -32,7 +32,6 @@ from holidays.calendars.gregorian import (
|
|
|
32
32
|
FRI,
|
|
33
33
|
SAT,
|
|
34
34
|
SUN,
|
|
35
|
-
_get_nth_weekday_of_month,
|
|
36
35
|
)
|
|
37
36
|
from holidays.constants import GOVERNMENT, OPTIONAL, PUBLIC, SCHOOL, WORKDAY
|
|
38
37
|
from holidays.groups import ChineseCalendarHolidays, InternationalHolidays, StaticHolidays
|
|
@@ -101,10 +100,8 @@ class Taiwan(ObservedHolidayBase, ChineseCalendarHolidays, InternationalHolidays
|
|
|
101
100
|
if dt.year <= 2000:
|
|
102
101
|
weekend = {SUN}
|
|
103
102
|
if dt.weekday() == SAT:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
_get_nth_weekday_of_month(4, SAT, dt.month, dt.year), # 4th Saturday.
|
|
107
|
-
}:
|
|
103
|
+
nth_saturday = (dt.day - 1) // 7 + 1 # Saturday number in the month.
|
|
104
|
+
if nth_saturday in {2, 4}:
|
|
108
105
|
weekend.add(SAT)
|
|
109
106
|
else:
|
|
110
107
|
weekend = {SAT, SUN}
|
|
@@ -348,7 +345,7 @@ class TaiwanStaticHolidays:
|
|
|
348
345
|
substituted_date_format = tr("%Y-%m-%d")
|
|
349
346
|
|
|
350
347
|
# Day off (substituted from %s).
|
|
351
|
-
substituted_label = tr("
|
|
348
|
+
substituted_label = tr("放假日(%s 補班)")
|
|
352
349
|
|
|
353
350
|
# Women's Day.
|
|
354
351
|
womens_day = tr("婦女節")
|
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
|
|
|
@@ -321,11 +322,11 @@ class Thailand(ObservedHolidayBase, InternationalHolidays, StaticHolidays, ThaiC
|
|
|
321
322
|
if self._year <= 1937:
|
|
322
323
|
self._add_holiday_apr_3(name)
|
|
323
324
|
elif self._year <= 1925:
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
325
|
+
self._add_multiday_holiday(
|
|
326
|
+
# Songkran New Year Holidays.
|
|
327
|
+
self._add_holiday_mar_28(tr("พระราชพิธีตะรุษะสงกรานต์ แลนักขัตฤกษ์")),
|
|
328
|
+
18,
|
|
329
|
+
)
|
|
329
330
|
else:
|
|
330
331
|
dt = self._add_holiday_apr_13(name)
|
|
331
332
|
self._add_holiday_apr_14(name)
|
|
@@ -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
|