holidays 0.62__py3-none-any.whl → 0.63__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/calendars/thai.py +25 -9
- holidays/countries/angola.py +22 -25
- holidays/countries/argentina.py +2 -3
- holidays/countries/bolivia.py +1 -1
- holidays/countries/bosnia_and_herzegovina.py +1 -1
- holidays/countries/cambodia.py +6 -7
- holidays/countries/canada.py +1 -2
- holidays/countries/chile.py +10 -11
- holidays/countries/costa_rica.py +1 -1
- holidays/countries/croatia.py +1 -2
- holidays/countries/czechia.py +1 -1
- holidays/countries/dominica.py +1 -2
- holidays/countries/france.py +18 -3
- holidays/countries/hungary.py +2 -2
- holidays/countries/israel.py +2 -3
- holidays/countries/kazakhstan.py +6 -0
- holidays/countries/latvia.py +2 -4
- holidays/countries/lithuania.py +1 -1
- holidays/countries/namibia.py +1 -1
- holidays/countries/new_zealand.py +3 -8
- holidays/countries/philippines.py +2 -2
- holidays/countries/south_korea.py +4 -8
- holidays/countries/thailand.py +499 -213
- holidays/countries/turkey.py +2 -4
- holidays/countries/united_states.py +26 -23
- holidays/countries/uruguay.py +8 -7
- holidays/financial/__init__.py +2 -2
- holidays/financial/european_central_bank.py +10 -3
- holidays/financial/ny_stock_exchange.py +1 -1
- holidays/holiday_base.py +2 -11
- holidays/locale/en_US/LC_MESSAGES/TH.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TH.po +128 -24
- holidays/locale/th/LC_MESSAGES/TH.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TH.po +127 -23
- holidays/registry.py +2 -2
- holidays/utils.py +1 -5
- holidays/version.py +1 -1
- {holidays-0.62.dist-info → holidays-0.63.dist-info}/METADATA +7 -7
- {holidays-0.62.dist-info → holidays-0.63.dist-info}/RECORD +43 -43
- {holidays-0.62.dist-info → holidays-0.63.dist-info}/AUTHORS +0 -0
- {holidays-0.62.dist-info → holidays-0.63.dist-info}/LICENSE +0 -0
- {holidays-0.62.dist-info → holidays-0.63.dist-info}/WHEEL +0 -0
- {holidays-0.62.dist-info → holidays-0.63.dist-info}/top_level.txt +0 -0
holidays/calendars/thai.py
CHANGED
|
@@ -22,7 +22,7 @@ THAI_CALENDAR = "THAI_CALENDAR"
|
|
|
22
22
|
|
|
23
23
|
class _ThaiLunisolar:
|
|
24
24
|
"""
|
|
25
|
-
** Thai Lunar Calendar Holidays only work from
|
|
25
|
+
** Thai Lunar Calendar Holidays only work from 1913 (B.E. 2456/2455) onwards
|
|
26
26
|
until 2157 (B.E. 2700) as we only have Thai year-type data for
|
|
27
27
|
cross-checking until then.
|
|
28
28
|
|
|
@@ -100,9 +100,15 @@ class _ThaiLunisolar:
|
|
|
100
100
|
2010-05-28
|
|
101
101
|
"""
|
|
102
102
|
|
|
103
|
-
# Athikawan (Extra-Day Year) list goes from
|
|
103
|
+
# Athikawan (Extra-Day Year) list goes from 1914-2157 C.E.
|
|
104
104
|
# Copied off from 1757-2157 (B.E. 2300-2700) Thai Lunar Calendar
|
|
105
105
|
ATHIKAWAN_YEARS_GREGORIAN = {
|
|
106
|
+
1914,
|
|
107
|
+
1917,
|
|
108
|
+
1925,
|
|
109
|
+
1929,
|
|
110
|
+
1933,
|
|
111
|
+
1936,
|
|
106
112
|
1945,
|
|
107
113
|
1949,
|
|
108
114
|
1952,
|
|
@@ -147,10 +153,20 @@ class _ThaiLunisolar:
|
|
|
147
153
|
2153,
|
|
148
154
|
}
|
|
149
155
|
|
|
150
|
-
# Athikamat (Extra-Month Year) list goes from
|
|
156
|
+
# Athikamat (Extra-Month Year) list goes from 1914-2157 C.E.:
|
|
151
157
|
# Copied off from 1757-2157 (B.E. 2300-2700) Thai Lunar Calendar
|
|
152
158
|
# Approx formula as follows: (common_era-78)-0.45222)%2.7118886 < 1
|
|
153
159
|
ATHIKAMAT_YEARS_GREGORIAN = {
|
|
160
|
+
1915,
|
|
161
|
+
1918,
|
|
162
|
+
1920,
|
|
163
|
+
1923,
|
|
164
|
+
1926,
|
|
165
|
+
1928,
|
|
166
|
+
1931,
|
|
167
|
+
1934,
|
|
168
|
+
1937,
|
|
169
|
+
1939,
|
|
154
170
|
1942,
|
|
155
171
|
1944,
|
|
156
172
|
1947,
|
|
@@ -234,12 +250,12 @@ class _ThaiLunisolar:
|
|
|
234
250
|
}
|
|
235
251
|
|
|
236
252
|
# While Buddhist Holy Days have been observed since the 1900s
|
|
237
|
-
#
|
|
238
|
-
# our array only goes up to B.E. 2700; We'll thus only populate
|
|
239
|
-
# the data for
|
|
253
|
+
# Thailand's Public Holiday Act wasn't codified until 1914 (B.E. 2457)
|
|
254
|
+
# and that our array only goes up to B.E. 2700; We'll thus only populate
|
|
255
|
+
# the data for 1914-2157 (B.E. 2457-2700).
|
|
240
256
|
# Sources: หนังสือเวียนกรมการปกครอง กระทรวงมหาดไทย มท 0310.1/ว4 5 ก.พ. 2539
|
|
241
|
-
START_DATE = date(
|
|
242
|
-
START_YEAR =
|
|
257
|
+
START_DATE = date(1913, 11, 28)
|
|
258
|
+
START_YEAR = 1914
|
|
243
259
|
END_YEAR = 2157
|
|
244
260
|
|
|
245
261
|
def __init__(self, calendar=THAI_CALENDAR) -> None:
|
|
@@ -270,7 +286,7 @@ class _ThaiLunisolar:
|
|
|
270
286
|
Calculate the start date of that particular Thai Lunar Calendar Year.
|
|
271
287
|
This usually falls in November or December of the previous Gregorian
|
|
272
288
|
year in question. Should the year be outside of working scope
|
|
273
|
-
(
|
|
289
|
+
(1914-2157: B.E 2457-2700), this will returns None instead.
|
|
274
290
|
|
|
275
291
|
:param year:
|
|
276
292
|
The Gregorian year.
|
holidays/countries/angola.py
CHANGED
|
@@ -71,7 +71,7 @@ class Angola(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
71
71
|
|
|
72
72
|
def _populate_public_holidays(self):
|
|
73
73
|
# New Year's Day.
|
|
74
|
-
name =
|
|
74
|
+
name = tr("Dia do Ano Novo")
|
|
75
75
|
dt = self._add_new_years_day(name)
|
|
76
76
|
if self._year <= 2011 or self._year >= 2018:
|
|
77
77
|
self._add_observed(dt)
|
|
@@ -84,14 +84,15 @@ class Angola(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
84
84
|
self._add_holiday_jan_4(tr("Dia dos Mártires da Repressão Colonial"))
|
|
85
85
|
)
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
self._add_observed(
|
|
88
|
+
self._add_holiday_feb_4(
|
|
89
|
+
# Beginning of the Armed Struggle for National Liberation Day.
|
|
90
|
+
tr("Dia do Início da Luta Armada de Libertação Nacional")
|
|
91
|
+
if self._year >= 2012
|
|
92
|
+
# Beginning of the Armed Struggle Day.
|
|
93
|
+
else tr("Dia do Início da Luta Armada")
|
|
94
|
+
)
|
|
93
95
|
)
|
|
94
|
-
self._add_observed(self._add_holiday_feb_4(name))
|
|
95
96
|
|
|
96
97
|
# Law #16/96.
|
|
97
98
|
if self._year >= 1997:
|
|
@@ -103,17 +104,13 @@ class Angola(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
103
104
|
|
|
104
105
|
# Law #11/18.
|
|
105
106
|
if self._year >= 2019:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
self._add_holiday_mar_23(tr("Dia da Libertação da África Austral"))
|
|
109
|
-
)
|
|
107
|
+
# Southern Africa Liberation Day.
|
|
108
|
+
self._add_observed(self._add_holiday_mar_23(tr("Dia da Libertação da África Austral")))
|
|
110
109
|
|
|
111
110
|
# Law #7/03.
|
|
112
111
|
if self._year >= 2003:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
self._add_holiday_apr_4(tr("Dia da Paz e Reconciliação Nacional"))
|
|
116
|
-
)
|
|
112
|
+
# Peace and National Reconciliation Day.
|
|
113
|
+
self._add_observed(self._add_holiday_apr_4(tr("Dia da Paz e Reconciliação Nacional")))
|
|
117
114
|
|
|
118
115
|
# Law #16/96.
|
|
119
116
|
if self._year >= 1997:
|
|
@@ -145,21 +142,22 @@ class Angola(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
145
142
|
if self._year <= 2010 or self._year >= 2018:
|
|
146
143
|
self._add_observed(dt)
|
|
147
144
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
145
|
+
self._add_observed(
|
|
146
|
+
self._add_holiday_nov_11(
|
|
147
|
+
# National Independence Day.
|
|
148
|
+
tr("Dia da Independência Nacional")
|
|
149
|
+
if self._year >= 1996
|
|
150
|
+
# Independence Day.
|
|
151
|
+
else tr("Dia da Independência")
|
|
152
|
+
)
|
|
154
153
|
)
|
|
155
|
-
self._add_observed(self._add_holiday_nov_11(name))
|
|
156
154
|
|
|
157
155
|
# Decree # 7/92.
|
|
158
156
|
if self._year <= 1991:
|
|
159
157
|
# Date of Founding of MPLA - Labor Party.
|
|
160
158
|
self._add_holiday_dec_10(tr("Data da Fundacao do MPLA - Partido do Trabalho"))
|
|
161
159
|
|
|
162
|
-
|
|
160
|
+
dt = self._add_christmas_day(
|
|
163
161
|
# Christmas and Family Day.
|
|
164
162
|
tr("Dia de Natal e da Família")
|
|
165
163
|
if self._year >= 2011
|
|
@@ -169,7 +167,6 @@ class Angola(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
169
167
|
else tr("Dia da Família") # Family Day.
|
|
170
168
|
)
|
|
171
169
|
)
|
|
172
|
-
dt = self._add_christmas_day(name)
|
|
173
170
|
if self._year <= 2010 or self._year >= 2018:
|
|
174
171
|
self._add_observed(dt)
|
|
175
172
|
|
holidays/countries/argentina.py
CHANGED
|
@@ -205,7 +205,7 @@ class Argentina(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, S
|
|
|
205
205
|
if self._year >= 2016:
|
|
206
206
|
jun_17 = self._add_holiday_jun_17(
|
|
207
207
|
# Pass to the Immortality of General Don Martin Miguel de Guemes.
|
|
208
|
-
tr("Paso a la Inmortalidad del General Don Martín Miguel de Güemes")
|
|
208
|
+
tr("Paso a la Inmortalidad del General Don Martín Miguel de Güemes")
|
|
209
209
|
)
|
|
210
210
|
# If Jun 17 is Friday, then it should move to Mon, Jun 20
|
|
211
211
|
# but Jun 20 is Gen. Belgrano holiday
|
|
@@ -232,14 +232,13 @@ class Argentina(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, S
|
|
|
232
232
|
# In 2010 the holiday became movable and its name was changed.
|
|
233
233
|
|
|
234
234
|
if self._year >= 1917:
|
|
235
|
-
|
|
235
|
+
oct_12 = self._add_columbus_day(
|
|
236
236
|
# Respect for Cultural Diversity Day.
|
|
237
237
|
tr("Día del Respeto a la Diversidad Cultural")
|
|
238
238
|
if self._year >= 2010
|
|
239
239
|
# Columbus Day.
|
|
240
240
|
else tr("Día de la Raza")
|
|
241
241
|
)
|
|
242
|
-
oct_12 = self._add_columbus_day(name)
|
|
243
242
|
if self._year >= 2010:
|
|
244
243
|
self._move_holiday(oct_12)
|
|
245
244
|
|
holidays/countries/bolivia.py
CHANGED
|
@@ -83,7 +83,7 @@ class Bolivia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
83
83
|
self._add_good_friday(tr("Viernes Santo"))
|
|
84
84
|
|
|
85
85
|
# Labor Day.
|
|
86
|
-
self._add_observed(may_1 := self._add_labor_day(
|
|
86
|
+
self._add_observed(may_1 := self._add_labor_day(tr("Día del Trabajo")))
|
|
87
87
|
# Supreme Decree #1210.
|
|
88
88
|
if 2012 <= self._year <= 2015:
|
|
89
89
|
self._add_observed(may_1, rule=TUE_TO_PREV_MON + THU_TO_NEXT_FRI)
|
|
@@ -224,7 +224,7 @@ class BosniaAndHerzegovina(
|
|
|
224
224
|
|
|
225
225
|
self._add_holiday_nov_21(
|
|
226
226
|
# Dayton Agreement Day.
|
|
227
|
-
tr("Dan uspostave Opšteg okvirnog sporazuma za mir u Bosni i Hercegovini")
|
|
227
|
+
tr("Dan uspostave Opšteg okvirnog sporazuma za mir u Bosni i Hercegovini")
|
|
228
228
|
)
|
|
229
229
|
|
|
230
230
|
# Catholic Christmas Eve.
|
holidays/countries/cambodia.py
CHANGED
|
@@ -128,7 +128,7 @@ class Cambodia(HolidayBase, InternationalHolidays, StaticHolidays, ThaiCalendarH
|
|
|
128
128
|
# NORODOM SIHAMONI, King of Cambodia
|
|
129
129
|
"ព្រះរាជពិធីបុណ្យចម្រើនព្រះជន្ម ព្រះករុណា ព្រះបាទសម្តេចព្រះបរមនាថ នរោត្តម សីហមុនី"
|
|
130
130
|
)
|
|
131
|
-
|
|
131
|
+
self._add_holiday_may_14(king_sihamoni_bday)
|
|
132
132
|
if self._year <= 2019:
|
|
133
133
|
self._add_holiday_may_13(king_sihamoni_bday)
|
|
134
134
|
self._add_holiday_may_15(king_sihamoni_bday)
|
|
@@ -159,7 +159,7 @@ class Cambodia(HolidayBase, InternationalHolidays, StaticHolidays, ThaiCalendarH
|
|
|
159
159
|
if self._year >= 1994:
|
|
160
160
|
self._add_holiday_jun_18(
|
|
161
161
|
# Birthday of Her Majesty the Queen-Mother NORODOM MONINEATH SIHANOUK of Cambodia
|
|
162
|
-
tr("ព្រះរាជពិធីបុណ្យចម្រើនព្រះជន្ម សម្តេចព្រះមហាក្សត្រី ព្រះវររាជមាតា នរោត្តម មុនិនាថ សីហនុ")
|
|
162
|
+
tr("ព្រះរាជពិធីបុណ្យចម្រើនព្រះជន្ម សម្តេចព្រះមហាក្សត្រី ព្រះវររាជមាតា នរោត្តម មុនិនាថ សីហនុ")
|
|
163
163
|
)
|
|
164
164
|
|
|
165
165
|
# ទិវាប្រកាសរដ្ឋធម្មនុញ្ញ
|
|
@@ -176,13 +176,12 @@ class Cambodia(HolidayBase, InternationalHolidays, StaticHolidays, ThaiCalendarH
|
|
|
176
176
|
|
|
177
177
|
if self._year >= 2012:
|
|
178
178
|
self._add_holiday_oct_15(
|
|
179
|
-
# Mourning Day of the Late King-Father
|
|
180
|
-
# NORODOM SIHANOUK of Cambodia
|
|
179
|
+
# Mourning Day of the Late King-Father NORODOM SIHANOUK of Cambodia
|
|
181
180
|
tr(
|
|
182
181
|
"ទិវាប្រារព្ឋពិធីគោរពព្រះវិញ្ញាណក្ខន្ឋ ព្រះករុណា ព្រះបាទសម្តេចព្រះ នរោត្តម "
|
|
183
182
|
"សីហនុ ព្រះមហាវីរក្សត្រ ព្រះវររាជបិតាឯករាជ្យ បូរណភាពទឹកដី និងឯកភាពជាតិខ្មែរ "
|
|
184
183
|
"ព្រះបរមរតនកោដ្ឋ"
|
|
185
|
-
)
|
|
184
|
+
)
|
|
186
185
|
)
|
|
187
186
|
|
|
188
187
|
# ទិវារំលឹកសន្ធិសញ្ញាសន្តិភាពទីក្រុងប៉ារីស
|
|
@@ -207,7 +206,7 @@ class Cambodia(HolidayBase, InternationalHolidays, StaticHolidays, ThaiCalendarH
|
|
|
207
206
|
"ព្រះរាជពិធីគ្រងព្រះបរមរាជសម្បត្តិ របស់ ព្រះករុណា "
|
|
208
207
|
"ព្រះបាទសម្តេចព្រះបរមនាថ នរោត្តម សីហមុនី "
|
|
209
208
|
"ព្រះមហាក្សត្រនៃព្រះរាជាណាចក្រកម្ពុជា"
|
|
210
|
-
)
|
|
209
|
+
)
|
|
211
210
|
)
|
|
212
211
|
|
|
213
212
|
# ពិធីបុណ្យឯករាជ្យជាតិ
|
|
@@ -226,7 +225,7 @@ class Cambodia(HolidayBase, InternationalHolidays, StaticHolidays, ThaiCalendarH
|
|
|
226
225
|
self._add_holiday_dec_10(tr("ទិវាសិទ្ធិមនុស្សអន្តរជាតិ"))
|
|
227
226
|
|
|
228
227
|
# Cambodian Lunar Calendar Holidays
|
|
229
|
-
# See `_ThaiLunisolar` in holidays/
|
|
228
|
+
# See `_ThaiLunisolar` in holidays/calendars/thai.py for more details.
|
|
230
229
|
# Cambodian Lunar Calendar Holidays only work from 1941 to 2157.
|
|
231
230
|
|
|
232
231
|
# ពិធីបុណ្យមាឃបូជា
|
holidays/countries/canada.py
CHANGED
|
@@ -236,14 +236,13 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
236
236
|
|
|
237
237
|
def _populate_subdiv_mb_optional_holidays(self):
|
|
238
238
|
if self._year >= 1900:
|
|
239
|
-
|
|
239
|
+
self._add_holiday_1st_mon_of_aug(
|
|
240
240
|
# Terry Fox Day.
|
|
241
241
|
tr("Terry Fox Day")
|
|
242
242
|
if self._year >= 2015
|
|
243
243
|
# Civic Holiday.
|
|
244
244
|
else tr("Civic Holiday")
|
|
245
245
|
)
|
|
246
|
-
self._add_holiday_1st_mon_of_aug(name)
|
|
247
246
|
|
|
248
247
|
if self._year >= 1931:
|
|
249
248
|
# Remembrance Day.
|
holidays/countries/chile.py
CHANGED
|
@@ -143,10 +143,8 @@ class Chile(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stati
|
|
|
143
143
|
# Day of National Liberation.
|
|
144
144
|
self._add_holiday_sep_11(tr("Día de la Liberación Nacional"))
|
|
145
145
|
elif 1999 <= self._year <= 2001:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
tr("Día de la Unidad Nacional")
|
|
149
|
-
)
|
|
146
|
+
# Day of National Unity.
|
|
147
|
+
self._add_holiday_1st_mon_of_sep(tr("Día de la Unidad Nacional"))
|
|
150
148
|
|
|
151
149
|
if self._year >= 2007:
|
|
152
150
|
self._add_observed(
|
|
@@ -168,14 +166,15 @@ class Chile(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stati
|
|
|
168
166
|
self._add_holiday_sep_20(tr("Fiestas Patrias"))
|
|
169
167
|
|
|
170
168
|
if self._year >= 1922 and self._year != 1973:
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
169
|
+
self._move_holiday(
|
|
170
|
+
self._add_columbus_day(
|
|
171
|
+
# Meeting of Two Worlds' Day.
|
|
172
|
+
tr("Día del Encuentro de dos Mundos")
|
|
173
|
+
if self._year >= 2000
|
|
174
|
+
# Columbus Day.
|
|
175
|
+
else tr("Día de la Raza")
|
|
176
|
+
)
|
|
177
177
|
)
|
|
178
|
-
self._move_holiday(self._add_columbus_day(name))
|
|
179
178
|
|
|
180
179
|
if self._year >= 2008:
|
|
181
180
|
# This holiday is moved to the preceding Friday if it falls on a Tuesday,
|
holidays/countries/costa_rica.py
CHANGED
|
@@ -106,7 +106,7 @@ class CostaRica(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
106
106
|
if self._year >= 2021:
|
|
107
107
|
aug_31 = self._add_holiday_aug_31(
|
|
108
108
|
# Day of the Black Person and Afro-Costa Rican Culture.
|
|
109
|
-
|
|
109
|
+
tr("Día de la Persona Negra y la Cultura Afrocostarricense")
|
|
110
110
|
)
|
|
111
111
|
if self._year in {2021, 2022, 2023}:
|
|
112
112
|
# Move to next Sunday.
|
holidays/countries/croatia.py
CHANGED
|
@@ -67,14 +67,13 @@ class Croatia(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
67
67
|
# Anti-Fascist Struggle Day.
|
|
68
68
|
self._add_holiday_jun_22(tr("Dan antifašističke borbe"))
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
self._add_holiday_aug_5(
|
|
71
71
|
# Victory and Homeland Thanksgiving Day and Croatian Veterans Day.
|
|
72
72
|
tr("Dan pobjede i domovinske zahvalnosti i Dan hrvatskih branitelja")
|
|
73
73
|
if self._year >= 2008
|
|
74
74
|
# Victory and Homeland Thanksgiving Day.
|
|
75
75
|
else tr("Dan pobjede i domovinske zahvalnosti")
|
|
76
76
|
)
|
|
77
|
-
self._add_holiday_aug_5(name)
|
|
78
77
|
|
|
79
78
|
# Assumption Day.
|
|
80
79
|
self._add_assumption_of_mary_day(tr("Velika Gospa"))
|
holidays/countries/czechia.py
CHANGED
|
@@ -36,7 +36,7 @@ class Czechia(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
36
36
|
tr("Den obnovy samostatného českého státu")
|
|
37
37
|
if self._year >= 2000
|
|
38
38
|
# New Year's Day.
|
|
39
|
-
else tr("Nový rok")
|
|
39
|
+
else tr("Nový rok")
|
|
40
40
|
)
|
|
41
41
|
|
|
42
42
|
if self._year <= 1951 or self._year >= 2016:
|
holidays/countries/dominica.py
CHANGED
|
@@ -75,14 +75,13 @@ class Dominica(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, St
|
|
|
75
75
|
# Whit Monday.
|
|
76
76
|
self._add_whit_monday("Whit Monday")
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
self._add_holiday_1st_mon_of_aug(
|
|
79
79
|
# Emancipation Day.
|
|
80
80
|
"Emancipation Day"
|
|
81
81
|
if self._year >= 1998
|
|
82
82
|
# First Monday of August.
|
|
83
83
|
else "First Monday of August"
|
|
84
84
|
)
|
|
85
|
-
self._add_holiday_1st_mon_of_aug(first_monday_of_august_holiday_name)
|
|
86
85
|
|
|
87
86
|
# Independence Day.
|
|
88
87
|
self._add_observed(self._add_holiday_nov_3("Independence Day"), rule=SUN_TO_NEXT_TUE)
|
holidays/countries/france.py
CHANGED
|
@@ -35,18 +35,33 @@ class France(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
35
35
|
default_language = "fr"
|
|
36
36
|
supported_languages = ("en_US", "fr", "uk")
|
|
37
37
|
subdivisions = (
|
|
38
|
-
"BL", # Saint
|
|
38
|
+
"BL", # Saint-Barthélemy.
|
|
39
39
|
"GES", # Alsace, Champagne-Ardenne, Lorraine(Moselle).
|
|
40
40
|
"GP", # Guadeloupe.
|
|
41
41
|
"GY", # Guyane.
|
|
42
|
-
"MF", # Saint
|
|
42
|
+
"MF", # Saint-Martin.
|
|
43
43
|
"MQ", # Martinique.
|
|
44
44
|
"NC", # Nouvelle-Calédonie,
|
|
45
45
|
"PF", # Polynésie Française.
|
|
46
|
-
"RE", #
|
|
46
|
+
"RE", # La Réunion.
|
|
47
47
|
"WF", # Wallis-et-Futuna.
|
|
48
48
|
"YT", # Mayotte.
|
|
49
49
|
)
|
|
50
|
+
subdivisions_aliases = {
|
|
51
|
+
"Saint-Barthélemy": "BL",
|
|
52
|
+
"Alsace": "GES",
|
|
53
|
+
"Champagne-Ardenne": "GES",
|
|
54
|
+
"Lorraine": "GES",
|
|
55
|
+
"Guadeloupe": "GP",
|
|
56
|
+
"Guyane": "GY",
|
|
57
|
+
"Saint-Martin": "MF",
|
|
58
|
+
"Martinique": "MQ",
|
|
59
|
+
"Nouvelle-Calédonie": "NC",
|
|
60
|
+
"Polynésie Française": "PF",
|
|
61
|
+
"La Réunion": "RE",
|
|
62
|
+
"Wallis-et-Futuna": "WF",
|
|
63
|
+
"Mayotte": "YT",
|
|
64
|
+
}
|
|
50
65
|
|
|
51
66
|
_deprecated_subdivisions = (
|
|
52
67
|
"Alsace-Moselle",
|
holidays/countries/hungary.py
CHANGED
|
@@ -54,7 +54,7 @@ class Hungary(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
|
|
|
54
54
|
|
|
55
55
|
def _populate_public_holidays(self):
|
|
56
56
|
# New Year's Day.
|
|
57
|
-
self._add_new_years_day(
|
|
57
|
+
self._add_new_years_day(tr("Újév"))
|
|
58
58
|
|
|
59
59
|
if 1945 <= self._year <= 1950 or self._year >= 1989:
|
|
60
60
|
# National Day.
|
|
@@ -90,7 +90,7 @@ class Hungary(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
|
|
|
90
90
|
tr("A kenyér ünnepe")
|
|
91
91
|
if 1950 <= self._year <= 1989
|
|
92
92
|
# State Foundation Day.
|
|
93
|
-
else tr("Az államalapítás ünnepe")
|
|
93
|
+
else tr("Az államalapítás ünnepe")
|
|
94
94
|
)
|
|
95
95
|
|
|
96
96
|
if self._year >= 1991:
|
holidays/countries/israel.py
CHANGED
|
@@ -73,10 +73,9 @@ class Israel(ObservedHolidayBase):
|
|
|
73
73
|
# Yom Kippur (Day of Atonement).
|
|
74
74
|
self._add_holiday(tr("יום כיפור"), self._get_holiday(YOM_KIPPUR))
|
|
75
75
|
|
|
76
|
-
# Sukkot (Feast of Tabernacles).
|
|
77
|
-
name = tr("סוכות")
|
|
78
76
|
sukkot_dt = self._get_holiday(SUKKOT)
|
|
79
|
-
|
|
77
|
+
# Sukkot (Feast of Tabernacles).
|
|
78
|
+
self._add_holiday(tr("סוכות"), sukkot_dt)
|
|
80
79
|
# Simchat Torah / Shemini Atzeret.
|
|
81
80
|
self._add_holiday(tr("שמחת תורה/שמיני עצרת"), _timedelta(sukkot_dt, +7))
|
|
82
81
|
|
holidays/countries/kazakhstan.py
CHANGED
|
@@ -74,6 +74,10 @@ class Kazakhstan(
|
|
|
74
74
|
- `2022 <https://adilet.zan.kz/kaz/docs/P2200000796>`_
|
|
75
75
|
- `2023 <https://adilet.zan.kz/kaz/docs/P2300000326>`_
|
|
76
76
|
- `2024 <https://adilet.zan.kz/kaz/docs/G24G0000109>`_
|
|
77
|
+
- `2025 <https://adilet.zan.kz/kaz/docs/G24G0000436>`_
|
|
78
|
+
|
|
79
|
+
Islamic holidays:
|
|
80
|
+
- 2025: `<https://en.inform.kz/news/first-day-of-ramadan-to-fall-on-march-1-2025-ca393f/>`_
|
|
77
81
|
"""
|
|
78
82
|
|
|
79
83
|
country = "KZ"
|
|
@@ -195,6 +199,7 @@ class KazakhstanIslamicHolidays(_CustomIslamicHolidays):
|
|
|
195
199
|
2022: (JUL, 9),
|
|
196
200
|
2023: (JUN, 28),
|
|
197
201
|
2024: (JUN, 16),
|
|
202
|
+
2025: (JUN, 6),
|
|
198
203
|
}
|
|
199
204
|
|
|
200
205
|
|
|
@@ -284,6 +289,7 @@ class KazakhstanStaticHolidays:
|
|
|
284
289
|
),
|
|
285
290
|
2023: (JUL, 7, JUL, 1),
|
|
286
291
|
2024: (MAY, 8, MAY, 4),
|
|
292
|
+
2025: (JAN, 3, JAN, 5),
|
|
287
293
|
}
|
|
288
294
|
|
|
289
295
|
special_public_holidays_observed = {
|
holidays/countries/latvia.py
CHANGED
|
@@ -55,10 +55,8 @@ class Latvia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
55
55
|
self._add_labor_day(tr("Darba svētki"))
|
|
56
56
|
|
|
57
57
|
if self._year >= 2002:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
tr("Latvijas Republikas Neatkarības atjaunošanas diena")
|
|
61
|
-
)
|
|
58
|
+
# Restoration of Independence Day.
|
|
59
|
+
dt = self._add_holiday_may_4(tr("Latvijas Republikas Neatkarības atjaunošanas diena"))
|
|
62
60
|
if self._year >= 2008:
|
|
63
61
|
self._add_observed(dt)
|
|
64
62
|
|
holidays/countries/lithuania.py
CHANGED
holidays/countries/namibia.py
CHANGED
|
@@ -73,7 +73,7 @@ class Namibia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Sta
|
|
|
73
73
|
self._add_holiday_sep_10(
|
|
74
74
|
"Day of the Namibian Women and International Human Rights Day"
|
|
75
75
|
if self._year >= 2005
|
|
76
|
-
else "International Human Rights Day"
|
|
76
|
+
else "International Human Rights Day"
|
|
77
77
|
)
|
|
78
78
|
)
|
|
79
79
|
|
|
@@ -122,9 +122,7 @@ class NewZealand(ObservedHolidayBase, ChristianHolidays, InternationalHolidays,
|
|
|
122
122
|
super().__init__(*args, **kwargs)
|
|
123
123
|
|
|
124
124
|
def _get_nearest_monday(self, *args) -> Optional[date]:
|
|
125
|
-
|
|
126
|
-
dt = dt if isinstance(dt, date) else date(self._year, *dt)
|
|
127
|
-
return self._get_observed_date(dt, rule=ALL_TO_NEAREST_MON)
|
|
125
|
+
return self._get_observed_date(date(self._year, *args), rule=ALL_TO_NEAREST_MON)
|
|
128
126
|
|
|
129
127
|
def _populate_public_holidays(self):
|
|
130
128
|
# Bank Holidays Act 1873
|
|
@@ -256,12 +254,9 @@ class NewZealand(ObservedHolidayBase, ChristianHolidays, InternationalHolidays,
|
|
|
256
254
|
|
|
257
255
|
def _populate_subdiv_ntl_public_holidays(self):
|
|
258
256
|
if 1964 <= self._year <= 1973:
|
|
259
|
-
|
|
260
|
-
dt = (FEB, 6)
|
|
257
|
+
self._add_holiday("Waitangi Day", self._get_nearest_monday(FEB, 6))
|
|
261
258
|
else:
|
|
262
|
-
|
|
263
|
-
dt = (JAN, 29)
|
|
264
|
-
self._add_holiday(name, self._get_nearest_monday(dt))
|
|
259
|
+
self._add_holiday("Auckland Anniversary Day", self._get_nearest_monday(JAN, 29))
|
|
265
260
|
|
|
266
261
|
def _populate_subdiv_ota_public_holidays(self):
|
|
267
262
|
# there is no easily determined single day of local observance?!?!
|
|
@@ -267,8 +267,8 @@ class PhilippinesStaticHolidays:
|
|
|
267
267
|
(NOV, 2, additional_special),
|
|
268
268
|
(DEC, 24, additional_special),
|
|
269
269
|
),
|
|
270
|
-
2010: (
|
|
271
|
-
2012: (
|
|
270
|
+
2010: (DEC, 24, additional_special),
|
|
271
|
+
2012: (NOV, 2, additional_special),
|
|
272
272
|
2013: (
|
|
273
273
|
(NOV, 2, additional_special),
|
|
274
274
|
(DEC, 24, additional_special),
|
|
@@ -399,10 +399,8 @@ class SouthKoreaStaticHolidays:
|
|
|
399
399
|
# Joint Memorial Service for Fallen Soldiers.
|
|
400
400
|
(JUN, 21, tr("전몰군인 합동위령제")),
|
|
401
401
|
),
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
(MAY, 16, tr("부통령 선거일")),
|
|
405
|
-
),
|
|
402
|
+
# Vice Presidential Election.
|
|
403
|
+
1951: (MAY, 16, tr("부통령 선거일")),
|
|
406
404
|
1952: (
|
|
407
405
|
# City/Town/Township-level Local Elections.
|
|
408
406
|
(APR, 25, local_election_day),
|
|
@@ -411,10 +409,8 @@ class SouthKoreaStaticHolidays:
|
|
|
411
409
|
# 2nd Presidential Election/3rd Vice President Election.
|
|
412
410
|
(AUG, 5, presidential_election_day),
|
|
413
411
|
),
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
(MAY, 20, national_assembly_election_day),
|
|
417
|
-
),
|
|
412
|
+
# 3rd National Assembly Election.
|
|
413
|
+
1954: (MAY, 20, national_assembly_election_day),
|
|
418
414
|
1956: (
|
|
419
415
|
# 3rd Presidential Election/4th Vice President Election.
|
|
420
416
|
(MAY, 15, presidential_election_day),
|