holidays 0.73__py3-none-any.whl → 0.75__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/__init__.py +1 -1
- holidays/calendars/balinese_saka.py +1 -1
- holidays/calendars/hindu.py +26 -26
- holidays/calendars/islamic.py +161 -0
- holidays/calendars/thai.py +2 -2
- holidays/constants.py +9 -2
- holidays/countries/__init__.py +202 -176
- holidays/countries/afghanistan.py +2 -2
- holidays/countries/aland_islands.py +63 -0
- holidays/countries/albania.py +3 -3
- holidays/countries/algeria.py +3 -3
- holidays/countries/andorra.py +1 -1
- holidays/countries/angola.py +11 -11
- holidays/countries/anguilla.py +175 -0
- holidays/countries/antigua_and_barbuda.py +10 -10
- holidays/countries/argentina.py +107 -104
- holidays/countries/armenia.py +2 -2
- holidays/countries/aruba.py +7 -7
- holidays/countries/australia.py +18 -18
- holidays/countries/azerbaijan.py +14 -14
- holidays/countries/bahamas.py +9 -9
- holidays/countries/bahrain.py +3 -3
- holidays/countries/bangladesh.py +1 -1
- holidays/countries/barbados.py +7 -7
- holidays/countries/belarus.py +9 -9
- holidays/countries/belgium.py +3 -3
- holidays/countries/belize.py +3 -3
- holidays/countries/benin.py +199 -0
- holidays/countries/bermuda.py +152 -0
- holidays/countries/bolivia.py +8 -8
- holidays/countries/bosnia_and_herzegovina.py +4 -4
- holidays/countries/botswana.py +4 -4
- holidays/countries/brazil.py +4 -4
- holidays/countries/british_virgin_islands.py +205 -0
- holidays/countries/brunei.py +43 -43
- holidays/countries/bulgaria.py +3 -3
- holidays/countries/burkina_faso.py +1 -1
- holidays/countries/burundi.py +2 -2
- holidays/countries/cambodia.py +6 -6
- holidays/countries/cameroon.py +3 -3
- holidays/countries/canada.py +9 -9
- holidays/countries/chad.py +2 -2
- holidays/countries/chile.py +8 -8
- holidays/countries/china.py +31 -31
- holidays/countries/cocos_islands.py +6 -6
- holidays/countries/colombia.py +7 -7
- holidays/countries/congo.py +2 -2
- holidays/countries/cook_islands.py +148 -0
- holidays/countries/costa_rica.py +1 -1
- holidays/countries/croatia.py +1 -1
- holidays/countries/cuba.py +9 -9
- holidays/countries/curacao.py +2 -2
- holidays/countries/cyprus.py +1 -1
- holidays/countries/czechia.py +3 -3
- holidays/countries/denmark.py +2 -2
- holidays/countries/djibouti.py +1 -1
- holidays/countries/dominica.py +11 -11
- holidays/countries/dominican_republic.py +2 -2
- holidays/countries/ecuador.py +1 -1
- holidays/countries/egypt.py +1 -1
- holidays/countries/el_salvador.py +3 -3
- holidays/countries/equatorial_guinea.py +150 -0
- holidays/countries/eswatini.py +3 -3
- holidays/countries/ethiopia.py +6 -6
- holidays/countries/fiji.py +12 -12
- holidays/countries/finland.py +200 -36
- holidays/countries/france.py +1 -1
- holidays/countries/french_southern_territories.py +1 -5
- holidays/countries/gabon.py +4 -4
- holidays/countries/georgia.py +2 -2
- holidays/countries/germany.py +3 -3
- holidays/countries/ghana.py +2 -2
- holidays/countries/greece.py +1 -1
- holidays/countries/greenland.py +2 -2
- holidays/countries/grenada.py +1 -1
- holidays/countries/guatemala.py +4 -4
- holidays/countries/guernsey.py +31 -31
- holidays/countries/guinea.py +6 -6
- holidays/countries/guyana.py +279 -0
- holidays/countries/haiti.py +3 -3
- holidays/countries/honduras.py +2 -2
- holidays/countries/hongkong.py +4 -4
- holidays/countries/hungary.py +98 -16
- holidays/countries/iceland.py +1 -1
- holidays/countries/india.py +8 -8
- holidays/countries/indonesia.py +46 -46
- holidays/countries/iran.py +2 -2
- holidays/countries/ireland.py +1 -1
- holidays/countries/italy.py +1 -1
- holidays/countries/ivory_coast.py +6 -6
- holidays/countries/jamaica.py +1 -1
- holidays/countries/japan.py +1 -1
- holidays/countries/jersey.py +23 -23
- holidays/countries/jordan.py +3 -3
- holidays/countries/kazakhstan.py +45 -45
- holidays/countries/kenya.py +13 -13
- holidays/countries/kuwait.py +4 -4
- holidays/countries/kyrgyzstan.py +1 -1
- holidays/countries/laos.py +7 -7
- holidays/countries/latvia.py +2 -2
- holidays/countries/lesotho.py +2 -2
- holidays/countries/liechtenstein.py +1 -1
- holidays/countries/lithuania.py +1 -1
- holidays/countries/macau.py +19 -19
- holidays/countries/madagascar.py +2 -2
- holidays/countries/malawi.py +2 -2
- holidays/countries/malaysia.py +6 -6
- holidays/countries/maldives.py +3 -3
- holidays/countries/malta.py +6 -6
- holidays/countries/marshall_islands.py +2 -2
- holidays/countries/mauritania.py +2 -2
- holidays/countries/mexico.py +4 -4
- holidays/countries/micronesia.py +205 -0
- holidays/countries/monaco.py +1 -1
- holidays/countries/montenegro.py +3 -3
- holidays/countries/morocco.py +4 -4
- holidays/countries/namibia.py +85 -26
- holidays/countries/nauru.py +129 -0
- holidays/countries/nepal.py +16 -16
- holidays/countries/netherlands.py +1 -1
- holidays/countries/new_zealand.py +2 -2
- holidays/countries/nicaragua.py +2 -2
- holidays/countries/niger.py +320 -0
- holidays/countries/nigeria.py +1 -1
- holidays/countries/north_macedonia.py +268 -16
- holidays/countries/norway.py +38 -5
- holidays/countries/oman.py +12 -12
- holidays/countries/pakistan.py +7 -7
- holidays/countries/palau.py +7 -7
- holidays/countries/panama.py +5 -5
- holidays/countries/papua_new_guinea.py +15 -15
- holidays/countries/paraguay.py +7 -7
- holidays/countries/peru.py +1 -1
- holidays/countries/philippines.py +18 -18
- holidays/countries/poland.py +1 -1
- holidays/countries/portugal.py +5 -5
- holidays/countries/qatar.py +7 -7
- holidays/countries/romania.py +1 -1
- holidays/countries/russia.py +28 -28
- holidays/countries/saint_kitts_and_nevis.py +16 -16
- holidays/countries/saint_lucia.py +3 -3
- holidays/countries/samoa.py +3 -3
- holidays/countries/sao_tome_and_principe.py +2 -2
- holidays/countries/saudi_arabia.py +3 -3
- holidays/countries/senegal.py +193 -0
- holidays/countries/seychelles.py +15 -15
- holidays/countries/sierra_leone.py +5 -5
- holidays/countries/singapore.py +12 -8
- holidays/countries/slovakia.py +1 -1
- holidays/countries/slovenia.py +3 -3
- holidays/countries/solomon_islands.py +220 -0
- holidays/countries/south_africa.py +4 -4
- holidays/countries/south_korea.py +7 -7
- holidays/countries/spain.py +18 -18
- holidays/countries/sri_lanka.py +26 -26
- holidays/countries/suriname.py +5 -5
- holidays/countries/svalbard_and_jan_mayen.py +47 -0
- holidays/countries/sweden.py +2 -2
- holidays/countries/switzerland.py +1 -1
- holidays/countries/taiwan.py +41 -41
- holidays/countries/tanzania.py +15 -15
- holidays/countries/thailand.py +85 -85
- holidays/countries/timor_leste.py +106 -104
- holidays/countries/togo.py +3 -3
- holidays/countries/tonga.py +16 -16
- holidays/countries/trinidad_and_tobago.py +4 -4
- holidays/countries/tunisia.py +1 -1
- holidays/countries/turkey.py +4 -4
- holidays/countries/turks_and_caicos_islands.py +134 -0
- holidays/countries/tuvalu.py +7 -7
- holidays/countries/ukraine.py +51 -51
- holidays/countries/united_arab_emirates.py +22 -22
- holidays/countries/united_kingdom.py +2 -2
- holidays/countries/united_states.py +39 -39
- holidays/countries/uruguay.py +6 -6
- holidays/countries/uzbekistan.py +3 -3
- holidays/countries/vanuatu.py +2 -2
- holidays/countries/vatican_city.py +11 -11
- holidays/countries/venezuela.py +8 -8
- holidays/countries/vietnam.py +7 -7
- holidays/countries/yemen.py +207 -0
- holidays/countries/zambia.py +3 -3
- holidays/deprecations/v1_incompatibility.py +1 -1
- holidays/financial/__init__.py +5 -5
- holidays/financial/brasil_bolsa_balcao.py +9 -9
- holidays/financial/european_central_bank.py +3 -3
- holidays/financial/ice_futures_europe.py +2 -2
- holidays/financial/ny_stock_exchange.py +4 -5
- holidays/groups/__init__.py +1 -1
- holidays/groups/chinese.py +3 -3
- holidays/groups/christian.py +4 -4
- holidays/groups/international.py +9 -9
- holidays/groups/islamic.py +16 -6
- holidays/groups/sinhala.py +12 -12
- holidays/groups/thai.py +3 -3
- holidays/locale/ar/LC_MESSAGES/YE.mo +0 -0
- holidays/locale/en_AI/LC_MESSAGES/AI.mo +0 -0
- holidays/locale/en_BM/LC_MESSAGES/BM.mo +0 -0
- holidays/locale/en_CK/LC_MESSAGES/CK.mo +0 -0
- holidays/locale/en_FM/LC_MESSAGES/FM.mo +0 -0
- holidays/locale/en_GY/LC_MESSAGES/GY.mo +0 -0
- holidays/locale/en_NA/LC_MESSAGES/NA.mo +0 -0
- holidays/locale/en_NR/LC_MESSAGES/NR.mo +0 -0
- holidays/locale/en_TC/LC_MESSAGES/TC.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/AI.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/AX.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/BJ.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/BM.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/FM.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/GQ.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/GY.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/MK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/NA.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/NE.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/NR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/SJ.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/SN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TC.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TH.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/VG.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/YE.mo +0 -0
- holidays/locale/en_VG/LC_MESSAGES/VG.mo +0 -0
- holidays/locale/es/LC_MESSAGES/GQ.mo +0 -0
- holidays/locale/fi/LC_MESSAGES/AX.mo +0 -0
- holidays/locale/fi/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/fr_BJ/LC_MESSAGES/BJ.mo +0 -0
- holidays/locale/fr_NE/LC_MESSAGES/NE.mo +0 -0
- holidays/locale/fr_SN/LC_MESSAGES/SN.mo +0 -0
- holidays/locale/mk/LC_MESSAGES/MK.mo +0 -0
- holidays/locale/no/LC_MESSAGES/SJ.mo +0 -0
- holidays/locale/sv_FI/LC_MESSAGES/AX.mo +0 -0
- holidays/locale/sv_FI/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/th/LC_MESSAGES/AX.mo +0 -0
- holidays/locale/th/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/th/LC_MESSAGES/SJ.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AX.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/FI.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/MK.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/NA.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/SJ.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/TH.mo +0 -0
- holidays/registry.py +16 -0
- holidays/version.py +1 -1
- {holidays-0.73.dist-info → holidays-0.75.dist-info}/METADATA +121 -10
- {holidays-0.73.dist-info → holidays-0.75.dist-info}/RECORD +251 -192
- {holidays-0.73.dist-info → holidays-0.75.dist-info}/WHEEL +1 -1
- {holidays-0.73.dist-info → holidays-0.75.dist-info}/licenses/CONTRIBUTORS +5 -0
- {holidays-0.73.dist-info → holidays-0.75.dist-info}/licenses/LICENSE +0 -0
- {holidays-0.73.dist-info → holidays-0.75.dist-info}/top_level.txt +0 -0
holidays/countries/azerbaijan.py
CHANGED
|
@@ -29,8 +29,8 @@ class Azerbaijan(ObservedHolidayBase, InternationalHolidays, IslamicHolidays, St
|
|
|
29
29
|
|
|
30
30
|
References:
|
|
31
31
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Azerbaijan>
|
|
32
|
-
* <https://az.wikipedia.org/wiki/
|
|
33
|
-
* <https://
|
|
32
|
+
* <https://az.wikipedia.org/wiki/Azərbaycanın_dövlət_bayramları_və_xüsusi_günləri>
|
|
33
|
+
* <https://web.archive.org/web/20240615110243/https://sosial.gov.az/en/prod-calendar>
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
country = "AZ"
|
|
@@ -45,7 +45,7 @@ class Azerbaijan(ObservedHolidayBase, InternationalHolidays, IslamicHolidays, St
|
|
|
45
45
|
supported_languages = ("az", "en_US", "uk")
|
|
46
46
|
start_year = 1990
|
|
47
47
|
|
|
48
|
-
def __init__(self, islamic_show_estimated: bool = True,
|
|
48
|
+
def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
|
|
49
49
|
"""
|
|
50
50
|
Args:
|
|
51
51
|
islamic_show_estimated:
|
|
@@ -265,19 +265,19 @@ class AzerbaijanStaticHolidays:
|
|
|
265
265
|
"""Azerbaijan special holidays.
|
|
266
266
|
|
|
267
267
|
Substituted holidays references:
|
|
268
|
-
* <https://nk.gov.az/az/senedler/qerarlar/is-va-istirahat-gunlarinin-yerlarinin-dayisdirilmasi-haqqinda-5423>
|
|
269
|
-
* <https://nk.gov.az/az/senedler/qerarlar/is-va-istirahat-gunlarinin-yerlarinin--dayisdirilmasi-haqqinda-5982>
|
|
270
|
-
* <https://nk.gov.az/az/senedler/qerarlar/is-va-istirahat-gunlarinin-yerlarinin-dayisdirilmasi-haqqinda-6488>
|
|
271
|
-
* <https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-7047>
|
|
272
|
-
* <https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-7466>
|
|
273
|
-
* <https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-7576>
|
|
274
|
-
* <https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-7843>
|
|
275
|
-
* <https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-8332>
|
|
276
|
-
* <https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-8449>
|
|
277
|
-
* <https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-8623>
|
|
268
|
+
* <https://web.archive.org/web/20240616014651/https://nk.gov.az/az/senedler/qerarlar/is-va-istirahat-gunlarinin-yerlarinin-dayisdirilmasi-haqqinda-5423>
|
|
269
|
+
* <https://web.archive.org/web/20250427175631/https://nk.gov.az/az/senedler/qerarlar/is-va-istirahat-gunlarinin-yerlarinin--dayisdirilmasi-haqqinda-5982>
|
|
270
|
+
* <https://web.archive.org/web/20250427175637/https://nk.gov.az/az/senedler/qerarlar/is-va-istirahat-gunlarinin-yerlarinin-dayisdirilmasi-haqqinda-6488>
|
|
271
|
+
* <https://web.archive.org/web/20240814143858/https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-7047>
|
|
272
|
+
* <https://web.archive.org/web/20250427175636/https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-7466>
|
|
273
|
+
* <https://web.archive.org/web/20240814142341/https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-7576>
|
|
274
|
+
* <https://web.archive.org/web/20250215005539/https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-7843>
|
|
275
|
+
* <https://web.archive.org/web/20241015224204/https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-8332>
|
|
276
|
+
* <https://web.archive.org/web/20250410132503/https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-8449>
|
|
277
|
+
* <https://web.archive.org/web/20250216200846/https://nk.gov.az/az/senedler/qerarlar/is-ve-istirahet-gunlerinin-yerlerinin-deyisdirilme-8623>
|
|
278
278
|
|
|
279
279
|
Special holidays references:
|
|
280
|
-
* <https://www.msk.gov.az/en/elections/pages/municipal-elections/belediyye-29-01-2025>
|
|
280
|
+
* <https://web.archive.org/web/20250421013220/https://www.msk.gov.az/en/elections/pages/municipal-elections/belediyye-29-01-2025>
|
|
281
281
|
"""
|
|
282
282
|
|
|
283
283
|
eid_al_adha = tr("Qurban bayrami")
|
holidays/countries/bahamas.py
CHANGED
|
@@ -27,16 +27,16 @@ class Bahamas(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Sta
|
|
|
27
27
|
|
|
28
28
|
References:
|
|
29
29
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_the_Bahamas>
|
|
30
|
-
* <https://laws.bahamas.gov.bs/cms/images/LEGISLATION/PRINCIPAL/1938/1938-0015/PublicHolidaysAct_1.pdf>
|
|
31
|
-
* <https://
|
|
32
|
-
* <https://
|
|
33
|
-
* <http://www.tribune242.com/news/2013/oct/12/national-heroes-day-formally-established/>
|
|
34
|
-
* <https://eleutheranews.com/?p=3594>
|
|
30
|
+
* <https://web.archive.org/web/20250421024112/http://laws.bahamas.gov.bs/cms/images/LEGISLATION/PRINCIPAL/1938/1938-0015/PublicHolidaysAct_1.pdf>
|
|
31
|
+
* <https://archive.org/details/majority-rule-public-holiday-act-2013>
|
|
32
|
+
* <https://archive.org/details/randol-fawkes-labour-day-act-2013>
|
|
33
|
+
* <https://web.archive.org/web/20210922210604/http://www.tribune242.com/news/2013/oct/12/national-heroes-day-formally-established/>
|
|
34
|
+
* <https://web.archive.org/web/20190905051207/http://eleutheranews.com/?p=3594>
|
|
35
35
|
|
|
36
36
|
Checked With:
|
|
37
|
-
* <https://www.bahamashclondon.net/consular-information/public-holidays/>
|
|
38
|
-
* <https://bisxbahamas.com/wp-content/uploads/2020/12/Trading-Calendar-2021.pdf>
|
|
39
|
-
* <https://publicholidays.la/the-bahamas/2022-dates/>
|
|
37
|
+
* <https://web.archive.org/web/20250218064125/https://www.bahamashclondon.net/consular-information/public-holidays/>
|
|
38
|
+
* <https://web.archive.org/web/20250427182357/https://bisxbahamas.com/wp-content/uploads/2020/12/Trading-Calendar-2021.pdf>
|
|
39
|
+
* <https://web.archive.org/web/20231210053149/https://publicholidays.la/the-bahamas/2022-dates/>
|
|
40
40
|
"""
|
|
41
41
|
|
|
42
42
|
country = "BS"
|
|
@@ -127,7 +127,7 @@ class BHS(Bahamas):
|
|
|
127
127
|
|
|
128
128
|
class BahamasStaticHolidays:
|
|
129
129
|
special_public_holidays = {
|
|
130
|
-
# https://www.bahamas.gov.bs/wps/portal/public/gov/government/notices/national%20holiday%2019th%20september/
|
|
130
|
+
# https://web.archive.org/web/20250122110613/https://www.bahamas.gov.bs/wps/portal/public/gov/government/notices/national%20holiday%2019th%20september/
|
|
131
131
|
2022: (SEP, 19, "State Funeral of Queen Elizabeth II"),
|
|
132
132
|
}
|
|
133
133
|
|
holidays/countries/bahrain.py
CHANGED
|
@@ -22,8 +22,8 @@ class Bahrain(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
22
22
|
"""Bahrain holidays.
|
|
23
23
|
|
|
24
24
|
References:
|
|
25
|
-
* <https://www.cbb.gov.bh/official-bank-holidays
|
|
26
|
-
* <https://www.officeholidays.com/countries/bahrain
|
|
25
|
+
* <https://web.archive.org/web/20250415063947/https://www.cbb.gov.bh/official-bank-holidays>
|
|
26
|
+
* <https://web.archive.org/web/20240805170117/https://www.officeholidays.com/countries/bahrain>
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
29
|
country = "BH"
|
|
@@ -33,7 +33,7 @@ class Bahrain(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
33
33
|
supported_languages = ("ar", "en_US")
|
|
34
34
|
weekend = {FRI, SAT}
|
|
35
35
|
|
|
36
|
-
def __init__(self, islamic_show_estimated: bool = True,
|
|
36
|
+
def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
|
|
37
37
|
"""
|
|
38
38
|
Args:
|
|
39
39
|
islamic_show_estimated:
|
holidays/countries/bangladesh.py
CHANGED
|
@@ -19,7 +19,7 @@ class Bangladesh(HolidayBase, InternationalHolidays):
|
|
|
19
19
|
"""Bangladesh holidays.
|
|
20
20
|
|
|
21
21
|
References:
|
|
22
|
-
* <https://mopa.gov.bd/sites/default/files/files/mopa.gov.bd/public_holiday/61c35b73_e335_462a_9bcf_4695b23b6d82/reg4-2019-212.PDF>
|
|
22
|
+
* <https://web.archive.org/web/20241109215908/https://mopa.gov.bd/sites/default/files/files/mopa.gov.bd/public_holiday/61c35b73_e335_462a_9bcf_4695b23b6d82/reg4-2019-212.PDF>
|
|
23
23
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Bangladesh>
|
|
24
24
|
"""
|
|
25
25
|
|
holidays/countries/barbados.py
CHANGED
|
@@ -25,12 +25,12 @@ class Barbados(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, St
|
|
|
25
25
|
|
|
26
26
|
References:
|
|
27
27
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Barbados>
|
|
28
|
-
* <https://www.timeanddate.com/holidays/barbados
|
|
29
|
-
* [Public Holidays Act Cap.352](
|
|
30
|
-
* <https://labour.gov.bb/pdf/Library/Other%20Docs/Public%20Holidays%20for%20the%20Year%202018.pdf>
|
|
31
|
-
* <https://labour.gov.bb/wp-content/uploads/2020/04/Public-Holidays-for-the-Year-2021.pdf>
|
|
32
|
-
* <https://gisbarbados.gov.bb/download/public-holidays-for-2022/>
|
|
33
|
-
* <https://gisbarbados.gov.bb/download/public-holidays-for-2023/>
|
|
28
|
+
* <https://web.archive.org/web/20250415140739/https://www.timeanddate.com/holidays/barbados>
|
|
29
|
+
* [Public Holidays Act Cap.352](https://web.archive.org/web/20250427133553/https://barbadosparliament-laws.com/en/showdoc/cs/352)
|
|
30
|
+
* <https://web.archive.org/web/20240629135051/https://labour.gov.bb/pdf/Library/Other%20Docs/Public%20Holidays%20for%20the%20Year%202018.pdf>
|
|
31
|
+
* <https://web.archive.org/web/20240630134528/https://labour.gov.bb/wp-content/uploads/2020/04/Public-Holidays-for-the-Year-2021.pdf>
|
|
32
|
+
* <https://web.archive.org/web/20241104070357/https://gisbarbados.gov.bb/download/public-holidays-for-2022/>
|
|
33
|
+
* <https://web.archive.org/web/20230803161905/https://gisbarbados.gov.bb/download/public-holidays-for-2023/>
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
country = "BB"
|
|
@@ -102,6 +102,6 @@ class BarbadosStaticHolidays:
|
|
|
102
102
|
(JAN, 5, "Public Holiday"),
|
|
103
103
|
),
|
|
104
104
|
# One off 50th Anniversary of CARICOM Holiday.
|
|
105
|
-
# See https://
|
|
105
|
+
# See https://web.archive.org/web/20240805050828/https://gisbarbados.gov.bb/blog/one-off-bank-holiday-for-caricoms-50th-anniversary-celebrations/
|
|
106
106
|
2023: (JUL, 31, "50th Anniversary of CARICOM Holiday"),
|
|
107
107
|
}
|
holidays/countries/belarus.py
CHANGED
|
@@ -23,16 +23,16 @@ class Belarus(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
|
|
|
23
23
|
"""Belarus holidays.
|
|
24
24
|
|
|
25
25
|
References:
|
|
26
|
-
* <https://president.gov.by/en/gosudarstvo/prazdniki>
|
|
27
|
-
* <https://president.gov.by/be/gosudarstvo/prazdniki>
|
|
28
|
-
* <https://president.gov.by/ru/gosudarstvo/prazdniki>
|
|
29
|
-
* <
|
|
30
|
-
* <
|
|
31
|
-
* <
|
|
26
|
+
* <https://web.archive.org/web/20250415105200/https://president.gov.by/en/gosudarstvo/prazdniki>
|
|
27
|
+
* <https://web.archive.org/web/20250413194347/https://president.gov.by/be/gosudarstvo/prazdniki>
|
|
28
|
+
* <https://web.archive.org/web/20250413194359/https://president.gov.by/ru/gosudarstvo/prazdniki>
|
|
29
|
+
* <https://web.archive.org/web/20250129213846/https://www.belarus.by/en/about-belarus/national-holidays>
|
|
30
|
+
* <https://web.archive.org/web/20250123174511/https://laws.newsby.org/documents/ukazp/pos05/ukaz05806.htm>
|
|
31
|
+
* <https://web.archive.org/web/20250413194444/https://president.gov.by/uploads/documents/2019/464uk.pdf>
|
|
32
32
|
* <https://ru.wikipedia.org/wiki/Праздники_Белоруссии>
|
|
33
33
|
|
|
34
34
|
Cross-checked With:
|
|
35
|
-
* <https://president.gov.by/en/gosudarstvo/prazdniki/calendar-2024>
|
|
35
|
+
* <https://web.archive.org/web/20250413194446/https://president.gov.by/en/gosudarstvo/prazdniki/calendar-2024>
|
|
36
36
|
"""
|
|
37
37
|
|
|
38
38
|
country = "BY"
|
|
@@ -148,8 +148,8 @@ class BelarusStaticHolidays:
|
|
|
148
148
|
"""Belarus special holidays.
|
|
149
149
|
|
|
150
150
|
References:
|
|
151
|
-
* <https://belarusbank.by/en/financial-institutions/11151>
|
|
152
|
-
* <https://belarusbank.by/en/financial-institutions/11160>
|
|
151
|
+
* <https://web.archive.org/web/20241005054448/https://belarusbank.by/en/financial-institutions/11151>
|
|
152
|
+
* <https://web.archive.org/web/20241210150222/https://belarusbank.by/en/financial-institutions/11160>
|
|
153
153
|
"""
|
|
154
154
|
|
|
155
155
|
# Date format (see strftime() Format Codes)
|
holidays/countries/belgium.py
CHANGED
|
@@ -22,9 +22,9 @@ class Belgium(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
22
22
|
|
|
23
23
|
References:
|
|
24
24
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Belgium>
|
|
25
|
-
* <https://www.belgium.be/nl/over_belgie/land/belgie_in_een_notendop/feestdagen>
|
|
26
|
-
* <https://nl.wikipedia.org/wiki/Feestdagen_in_Belgi
|
|
27
|
-
* <https://www.nbb.be/en/about-national-bank/national-bank-belgium/public-holidays>
|
|
25
|
+
* <https://web.archive.org/web/20250331001402/https://www.belgium.be/nl/over_belgie/land/belgie_in_een_notendop/feestdagen>
|
|
26
|
+
* <https://nl.wikipedia.org/wiki/Feestdagen_in_België>
|
|
27
|
+
* <https://web.archive.org/web/20240816004739/https://www.nbb.be/en/about-national-bank/national-bank-belgium/public-holidays>
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
30
|
country = "BE"
|
holidays/countries/belize.py
CHANGED
|
@@ -24,9 +24,9 @@ class Belize(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
24
24
|
|
|
25
25
|
References:
|
|
26
26
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Belize>
|
|
27
|
-
* <
|
|
28
|
-
* <https://www.pressoffice.gov.bz/public-and-bank-holidays-2022-updated
|
|
29
|
-
* <https://www.pressoffice.gov.bz/government-of-belize-establishes-new-public-and-bank-holidays/>
|
|
27
|
+
* <https://web.archive.org/web/20250427131247/https://www.belizelaw.org/web/lawadmin/PDF%20files/cap289.pdf>
|
|
28
|
+
* <https://web.archive.org/web/20250421081044/https://www.pressoffice.gov.bz/public-and-bank-holidays-2022-updated>
|
|
29
|
+
* <https://web.archive.org/web/20250318103939/https://www.pressoffice.gov.bz/government-of-belize-establishes-new-public-and-bank-holidays/>
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
32
|
country = "BZ"
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# holidays
|
|
2
|
+
# --------
|
|
3
|
+
# A fast, efficient Python library for generating country, province and state
|
|
4
|
+
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
|
+
# specific date is a holiday as fast and flexible as possible.
|
|
6
|
+
#
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
|
+
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
|
+
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
|
+
# Website: https://github.com/vacanza/holidays
|
|
11
|
+
# License: MIT (see LICENSE file)
|
|
12
|
+
|
|
13
|
+
from gettext import gettext as tr
|
|
14
|
+
|
|
15
|
+
from holidays.constants import PUBLIC, WORKDAY
|
|
16
|
+
from holidays.groups import ChristianHolidays, InternationalHolidays, IslamicHolidays
|
|
17
|
+
from holidays.holiday_base import HolidayBase
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class Benin(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays):
|
|
21
|
+
"""Benin holidays.
|
|
22
|
+
|
|
23
|
+
References:
|
|
24
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Benin>
|
|
25
|
+
* [Order 71-14](https://web.archive.org/web/20240727075244/https://sgg.gouv.bj/doc/ordonnance-1971-14/)
|
|
26
|
+
* [Order 76-35](https://web.archive.org/web/20240726042853/https://sgg.gouv.bj/doc/ordonnance-1976-35/)
|
|
27
|
+
* [Order 79-33](https://web.archive.org/web/20240725115717/https://sgg.gouv.bj/doc/ordonnance-1979-33/)
|
|
28
|
+
* [Law 90-019](https://web.archive.org/web/20250527021602/https://sgg.gouv.bj/doc/loi-90-019/)
|
|
29
|
+
* [Law 97-031](https://web.archive.org/web/20250527022039/https://sgg.gouv.bj/doc/loi-97-031/)
|
|
30
|
+
* [Law 2024-32](https://web.archive.org/web/20250321041430/https://sgg.gouv.bj/doc/loi-2024-32/)
|
|
31
|
+
|
|
32
|
+
Official dates:
|
|
33
|
+
* [2015](https://web.archive.org/web/20211130121041/https://beninconsulate.co.ke/index.php/news-events/7-public-holidays-2015)
|
|
34
|
+
* [2017](https://web.archive.org/web/20211130124252/https://beninconsulate.co.ke/index.php/news-events/8-public-holidays-2017)
|
|
35
|
+
* [2019](https://web.archive.org/web/20231003144018/https://beninconsulate.co.ke/index.php/news-events)
|
|
36
|
+
* [2024](https://web.archive.org/web/20241211032923/https://beninconsulate.co.ke/index.php/news-events)
|
|
37
|
+
* [2025](https://web.archive.org/web/20250317141957/https://beninconsulate.co.ke/index.php/news-events?start=1)
|
|
38
|
+
|
|
39
|
+
Certain holidays dates:
|
|
40
|
+
* 2022:
|
|
41
|
+
* [All Saints' Day](https://web.archive.org/web/20241010101230/https://travail.gouv.bj/page/communiques/la-journee-du-mardi-1er-novembre-2022-declaree-feriee-chomee-et-payee)
|
|
42
|
+
* [Christmas Day](https://web.archive.org/web/20240814200022/https://travail.gouv.bj/page/communiques/la-journee-du-dimanche-25-decembre-2022-declaree-feriee-chomee-et-payee-a-loccasion-de-la-celebration-de-la-fete-de-noel-lire-le-communique-du-ministre-du-travail-et-de-la-fonction-publique)
|
|
43
|
+
* 2023:
|
|
44
|
+
* [New Year's Day](https://web.archive.org/web/20240724084416/https://travail.gouv.bj/page/communiques/la-journee-du-dimanche-1er-janvier-2023-declaree-feriee-chomee-et-payee-a-loccasion-de-la-celebration-de-la-fete-du-nouvel-an)
|
|
45
|
+
* [Vodoun Festival](https://web.archive.org/web/20240724084406/https://travail.gouv.bj/page/communiques/la-journee-du-mardi-10-janvier-2023-est-declaree-feriee-chomee-et-payee-a-loccasion-de-la-celebration-de-la-fete-annuelle-des-religions-traditionnelles-2301071350-956)
|
|
46
|
+
* [Eid al-Fitr](https://web.archive.org/web/20240723004550/https://travail.gouv.bj/page/communiques/celebration-le-vendredi-21-avril-2023-de-la-fete-du-ramadan)
|
|
47
|
+
* [Easter Monday](https://web.archive.org/web/20241010103541/https://travail.gouv.bj/page/communiques/la-journee-du-lundi-10-avril-2023-est-declaree-feriee-chomee-et-payee-en-raison-de-la-fete-de-paques)
|
|
48
|
+
* [Whit Monday](https://web.archive.org/web/20240911163554/https://travail.gouv.bj/page/communiques/la-fete-de-pentecote)
|
|
49
|
+
* [Labor Day](https://web.archive.org/web/20240814205702/https://travail.gouv.bj/page/communiques/la-journee-du-lundi-1er-mai-2023-declaree-feriee-chomee-et-payee-sur-toute-letendue-du-territoire-national-a-loccasion-de-la-celebration-de-la-fete-du-travail)
|
|
50
|
+
* [Assumption Day](https://web.archive.org/web/20241214182235/https://travail.gouv.bj/page/communiques/la-journee-du-mardi-15-aout-2023-declaree-feriee-chomee-et-payee-en-raison-de-la-fete-de-lassomption)
|
|
51
|
+
* [Independence Day](https://web.archive.org/web/20240723004533/https://travail.gouv.bj/page/communiques/la-journee-du-mardi-1er-aout-2023-declaree-feriee-chomee-et-payee-a-l-occasion-de-la-fete-nationale)
|
|
52
|
+
* [Eid al-Adha](https://web.archive.org/web/20250422035008/https://travail.gouv.bj/page/communiques/communique-du-ministere-du-travail-et-de-la-fonction-publique-2306262022-744)
|
|
53
|
+
* 2024:
|
|
54
|
+
* [Vodoun Festival](https://web.archive.org/web/20240723004435/https://travail.gouv.bj/page/communiques/la-journee-du-mercredi-10-janvier-2024-est-feriee-chomee-et-payee-sur-toute-letendue-du-territoire-national)
|
|
55
|
+
* [Eid al-Fitr](https://web.archive.org/web/20241010114534/https://travail.gouv.bj/page/communiques/la-journee-du-mercredi-10-avril-2024-jour-du-ramadan-est-declaree-feriee-chomee-et-payee-sur-toute-letendue-du-territoire-national)
|
|
56
|
+
* [Easter Monday](https://web.archive.org/web/20241106004344/https://travail.gouv.bj/page/communiques/la-journee-du-lundi-1er-avril-2024-lundi-de-paques-est-chomee)
|
|
57
|
+
* [Assumption Day](https://web.archive.org/web/20250215044724/https://travail.gouv.bj/page/communiques/la-journee-du-dimanche-15-aout-jour-de-lassomption-est-feriee-chomee-et-payee-sur-toute-letendue-du-territoire-national)
|
|
58
|
+
* [Eid al-Adha](https://web.archive.org/web/20241214200230/https://travail.gouv.bj/page/communiques/jour-de-la-tabaski)
|
|
59
|
+
* [Labor Day](https://web.archive.org/web/20250418224409/https://www.travail.gouv.bj/page/communiques/la-journee-du-mercredi-1er-mai-2024-journee-de-la-fete-du-travail-est-feriee-chomee-et-payee-sur-toute-letendue-du-territoire-national)
|
|
60
|
+
* [Ascension Day](https://web.archive.org/web/20241214204011/https://travail.gouv.bj/page/communiques/le-jeudi-09-mai-2024-jour-de-lascension-est-feriee-chomee-et-payee-sur-toute-letendue-du-territoire-national)
|
|
61
|
+
* [Whit Monday](https://web.archive.org/web/20241010113401/https://travail.gouv.bj/page/communiques/le-lundi-20-mai-2024-lundi-de-pentecote-est-ferie-chome-et-paye-sur-toute-letendue-du-territoire-national)
|
|
62
|
+
* [Prophet's Birthday](https://web.archive.org/web/20250215034616/https://travail.gouv.bj/page/communiques/la-journee-du-dimanche-15-septembre-2024-jour-de-maoloud-est-feriee-chomee-et-payee-sur-toute-letendue-du-territoire-national)
|
|
63
|
+
* [Christmas Day](https://web.archive.org/web/20250122081816/https://travail.gouv.bj/page/communiques/la-journee-du-mercredi-25-decembre-2024-est-feriee-chomee-et-payee-sur-toute-letendue-du-territoire-national)
|
|
64
|
+
* 2025:
|
|
65
|
+
* [New Year's Day](https://web.archive.org/web/20250422023225/https://travail.gouv.bj/page/communiques/la-journee-du-mercredi-1er-janvier-2025-fete-du-nouvel-an-est-feriee-chomee-et-payee-sur-toute-letendue-du-territoire-national)
|
|
66
|
+
* [Vodoun Festival](https://web.archive.org/web/20250422034718/https://travail.gouv.bj/page/communiques/les-journees-du-jeudi-9-janvier-2024-et-vendredi-10-janvier-2024-sont-feriees-chomees-et-payees-sur-toute-letendue-du-territoire-national)
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
country = "BJ"
|
|
70
|
+
default_language = "fr_BJ"
|
|
71
|
+
# %s (estimated).
|
|
72
|
+
estimated_label = tr("%s (estimé)")
|
|
73
|
+
# Order 76-35 of June 30, 1976.
|
|
74
|
+
start_year = 1977
|
|
75
|
+
supported_categories = (PUBLIC, WORKDAY)
|
|
76
|
+
supported_languages = ("en_US", "fr_BJ")
|
|
77
|
+
|
|
78
|
+
def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
|
|
79
|
+
"""
|
|
80
|
+
Args:
|
|
81
|
+
islamic_show_estimated:
|
|
82
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
83
|
+
if holiday date is estimated.
|
|
84
|
+
"""
|
|
85
|
+
ChristianHolidays.__init__(self)
|
|
86
|
+
InternationalHolidays.__init__(self)
|
|
87
|
+
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
|
|
88
|
+
super().__init__(*args, **kwargs)
|
|
89
|
+
|
|
90
|
+
def _populate_public_holidays(self):
|
|
91
|
+
# New Year's Day.
|
|
92
|
+
self._add_new_years_day(tr("Fête du Nouvel An"))
|
|
93
|
+
|
|
94
|
+
# Established in 1998 by Law 97-031.
|
|
95
|
+
# Changed in 2025 by Law 2024-32.
|
|
96
|
+
if self._year >= 1998:
|
|
97
|
+
# Vodoun Festival.
|
|
98
|
+
name = tr("Fête annuelle des religions traditionnelles")
|
|
99
|
+
if self._year >= 2025:
|
|
100
|
+
self._add_holiday_1_day_prior_2nd_fri_of_jan(name)
|
|
101
|
+
self._add_holiday_2nd_fri_of_jan(name)
|
|
102
|
+
else:
|
|
103
|
+
self._add_holiday_jan_10(name)
|
|
104
|
+
|
|
105
|
+
# Established in 1980 by Order 79-33.
|
|
106
|
+
# Abolished in 1991 by Law 90-019.
|
|
107
|
+
if 1980 <= self._year <= 1990:
|
|
108
|
+
# Martyrs' Day.
|
|
109
|
+
self._add_holiday_jan_16(tr("Journée des Martyrs"))
|
|
110
|
+
|
|
111
|
+
# Youth Day.
|
|
112
|
+
self._add_holiday_apr_1(tr("Journée de la Jeunesse Béninoise"))
|
|
113
|
+
|
|
114
|
+
# Changed in 1991 by Law 90-019.
|
|
115
|
+
if self._year >= 1991:
|
|
116
|
+
# Easter Monday.
|
|
117
|
+
self._add_easter_monday(tr("Lundi de Pâques"))
|
|
118
|
+
else:
|
|
119
|
+
# Easter Sunday.
|
|
120
|
+
self._add_easter_sunday(tr("Jour de Pâques"))
|
|
121
|
+
|
|
122
|
+
# Labor Day.
|
|
123
|
+
self._add_labor_day(tr("Fête du Travail"))
|
|
124
|
+
|
|
125
|
+
# Established in 1991 by Law 90-019.
|
|
126
|
+
if self._year >= 1991:
|
|
127
|
+
# Ascension Day.
|
|
128
|
+
self._add_ascension_thursday(tr("Jour de l'Ascension"))
|
|
129
|
+
|
|
130
|
+
if self._year >= 1991:
|
|
131
|
+
# Whit Monday.
|
|
132
|
+
self._add_whit_monday(tr("Lundi de Pentecôte"))
|
|
133
|
+
else:
|
|
134
|
+
# Whit Sunday.
|
|
135
|
+
self._add_whit_sunday(tr("Jour de Pentecôte"))
|
|
136
|
+
|
|
137
|
+
# Established in 1990 by Law 90-019.
|
|
138
|
+
if self._year >= 1990:
|
|
139
|
+
# Assumption Day.
|
|
140
|
+
self._add_assumption_of_mary_day(tr("Jour de l'Assomption"))
|
|
141
|
+
|
|
142
|
+
# Established in 1977 by Order 71-14.
|
|
143
|
+
# Abolished in 1990 by Law 90-019.
|
|
144
|
+
if self._year <= 1989:
|
|
145
|
+
# Armed Forces Day.
|
|
146
|
+
self._add_holiday_oct_26(tr("Fête des Forces Armées Populaires du Bénin"))
|
|
147
|
+
|
|
148
|
+
# Established in 1990 by Law 90-019.
|
|
149
|
+
if self._year >= 1990:
|
|
150
|
+
# All Saints' Day.
|
|
151
|
+
self._add_all_saints_day(tr("La Toussaint"))
|
|
152
|
+
|
|
153
|
+
# National Day.
|
|
154
|
+
name = tr("Fête Nationale")
|
|
155
|
+
if self._year >= 1991:
|
|
156
|
+
self._add_holiday_aug_1(name)
|
|
157
|
+
else:
|
|
158
|
+
self._add_holiday_nov_30(name)
|
|
159
|
+
|
|
160
|
+
# Christmas Day.
|
|
161
|
+
self._add_christmas_day(tr("Jour de Noël"))
|
|
162
|
+
|
|
163
|
+
# Established in 1977 by Order 71-14.
|
|
164
|
+
# Abolished in 1990 by Law 90-019.
|
|
165
|
+
if self._year <= 1989:
|
|
166
|
+
# Production Day.
|
|
167
|
+
self._add_holiday_dec_31(tr("Fête de la Production"))
|
|
168
|
+
|
|
169
|
+
# Islamic holidays.
|
|
170
|
+
|
|
171
|
+
# Established in 1990 by Law 90-019.
|
|
172
|
+
if self._year >= 1990:
|
|
173
|
+
# Prophet's Birthday.
|
|
174
|
+
self._add_mawlid_day(tr("Journée Maouloud"))
|
|
175
|
+
|
|
176
|
+
# Eid al-Fitr.
|
|
177
|
+
self._add_eid_al_fitr_day(tr("Jour du Ramadan"))
|
|
178
|
+
|
|
179
|
+
# Eid al-Adha.
|
|
180
|
+
self._add_eid_al_adha_day(tr("Jour de la Tabaski"))
|
|
181
|
+
|
|
182
|
+
def _populate_workday_holidays(self):
|
|
183
|
+
if self._year >= 1990:
|
|
184
|
+
# Remembrance Day.
|
|
185
|
+
self._add_holiday_jan_16(tr("Journée de Souvenir"))
|
|
186
|
+
|
|
187
|
+
# People's Sovereignty Day.
|
|
188
|
+
self._add_holiday_feb_28(tr("Journée de la Souveraineté de Peuple"))
|
|
189
|
+
|
|
190
|
+
# Women's Day.
|
|
191
|
+
self._add_holiday_mar_8(tr("Journée de la Femme"))
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
class BJ(Benin):
|
|
195
|
+
pass
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
class BEN(Benin):
|
|
199
|
+
pass
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# holidays
|
|
2
|
+
# --------
|
|
3
|
+
# A fast, efficient Python library for generating country, province and state
|
|
4
|
+
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
|
+
# specific date is a holiday as fast and flexible as possible.
|
|
6
|
+
#
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
|
8
|
+
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
|
+
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
|
+
# Website: https://github.com/vacanza/holidays
|
|
11
|
+
# License: MIT (see LICENSE file)
|
|
12
|
+
|
|
13
|
+
from gettext import gettext as tr
|
|
14
|
+
|
|
15
|
+
from holidays.calendars.gregorian import MAY, JUN, OCT, NOV
|
|
16
|
+
from holidays.groups import ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
17
|
+
from holidays.observed_holiday_base import (
|
|
18
|
+
ObservedHolidayBase,
|
|
19
|
+
SAT_SUN_TO_NEXT_MON,
|
|
20
|
+
SAT_SUN_TO_NEXT_MON_TUE,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Bermuda(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
25
|
+
"""Bermuda holidays.
|
|
26
|
+
|
|
27
|
+
References:
|
|
28
|
+
* [Public Holidays Act 1947](https://web.archive.org/web/20250527163956/https://www.bermudalaws.bm/Laws/Consolidated%20Law/1947/Public%20Holidays%20Act%201947)
|
|
29
|
+
* [Public Holidays Amendment Act 1999](https://web.archive.org/web/20250527163749/https://www.bermudalaws.bm/Laws/Annual%20Law/Acts/1999/Public%20Holidays%20Amendment%20Act%201999)
|
|
30
|
+
* [Public Holidays Amendment Act 2008](https://web.archive.org/web/20250527163810/https://www.bermudalaws.bm/Laws/Annual%20Law/Acts/2008/Public%20Holidays%20Amendment%20Act%202008)
|
|
31
|
+
* [Public Holidays Amendment (No. 2) Act 2009](https://web.archive.org/web/20250527163816/https://www.bermudalaws.bm/Laws/Annual%20Law/Acts/2009/Public%20Holidays%20Amendment%20(No.%202)%20Act%202009)
|
|
32
|
+
* [Public Holidays Amendment Act 2017](https://web.archive.org/web/20250527163819/https://www.bermudalaws.bm/Laws/Annual%20Law/Acts/2017/Public%20Holidays%20Amendment%20Act%202017)
|
|
33
|
+
* [Public Holidays Amendment Act 2020](https://web.archive.org/web/20250527163836/https://www.bermudalaws.bm/Laws/Annual%20Law/Acts/2020/Public%20Holidays%20Amendment%20Act%202020)
|
|
34
|
+
* [Government of Bermuda](https://web.archive.org/web/20250530055854/https://www.gov.bm/public-holidays)
|
|
35
|
+
* [Proclamation BR 149 / 2018](https://web.archive.org/web/20250530114331/https://www.bermudalaws.bm/Laws/Annual%20Law/Statutory%20Instruments/2018/Proclamation%20-%20Bermuda%20Day%20Public%20Holiday)
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
country = "BM"
|
|
39
|
+
default_language = "en_BM"
|
|
40
|
+
# %s (observed).
|
|
41
|
+
observed_label = tr("%s (observed)")
|
|
42
|
+
supported_languages = ("en_BM", "en_US")
|
|
43
|
+
start_year = 1948
|
|
44
|
+
|
|
45
|
+
def __init__(self, *args, **kwargs):
|
|
46
|
+
ChristianHolidays.__init__(self)
|
|
47
|
+
InternationalHolidays.__init__(self)
|
|
48
|
+
StaticHolidays.__init__(self, BermudaStaticHolidays)
|
|
49
|
+
kwargs.setdefault("observed_rule", SAT_SUN_TO_NEXT_MON)
|
|
50
|
+
super().__init__(*args, **kwargs)
|
|
51
|
+
|
|
52
|
+
def _populate_public_holidays(self):
|
|
53
|
+
# New Year's Day.
|
|
54
|
+
self._add_observed(self._add_new_years_day(tr("New Year's Day")))
|
|
55
|
+
|
|
56
|
+
# Good Friday.
|
|
57
|
+
self._add_good_friday(tr("Good Friday"))
|
|
58
|
+
|
|
59
|
+
# Bermuda Day.
|
|
60
|
+
name = tr("Bermuda Day")
|
|
61
|
+
if self._year <= 2017:
|
|
62
|
+
self._add_observed(self._add_holiday_may_24(name))
|
|
63
|
+
elif self._year == 2019:
|
|
64
|
+
self._add_holiday_may_24(name)
|
|
65
|
+
elif self._year <= 2020:
|
|
66
|
+
self._add_holiday_last_fri_of_may(name)
|
|
67
|
+
else:
|
|
68
|
+
self._add_holiday_3_days_prior_last_mon_of_may(name)
|
|
69
|
+
|
|
70
|
+
# Queen's Birthday.
|
|
71
|
+
name = tr("Queen's Birthday")
|
|
72
|
+
if self._year <= 1999:
|
|
73
|
+
self._add_holiday_3rd_mon_of_jun(name)
|
|
74
|
+
elif self._year <= 2008:
|
|
75
|
+
self._add_holiday_2_days_past_2nd_sat_of_jun(name)
|
|
76
|
+
|
|
77
|
+
# National Heroes Day.
|
|
78
|
+
name = tr("National Heroes Day")
|
|
79
|
+
if self._year == 2008:
|
|
80
|
+
self._add_holiday_2nd_mon_of_oct(name)
|
|
81
|
+
elif self._year >= 2009:
|
|
82
|
+
self._add_holiday_3rd_mon_of_jun(name)
|
|
83
|
+
|
|
84
|
+
self._add_holiday_4_days_prior_1st_mon_of_aug(
|
|
85
|
+
# Cup Match Day.
|
|
86
|
+
tr("Cup Match Day")
|
|
87
|
+
if self._year <= 1999
|
|
88
|
+
# Emancipation Day.
|
|
89
|
+
else tr("Emancipation Day")
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
self._add_holiday_3_days_prior_1st_mon_of_aug(
|
|
93
|
+
# Somers Day.
|
|
94
|
+
tr("Somers Day")
|
|
95
|
+
if self._year <= 2019
|
|
96
|
+
# Mary Prince Day.
|
|
97
|
+
else tr("Mary Prince Day")
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
# Labor Day.
|
|
101
|
+
self._add_holiday_1st_mon_of_sep(tr("Labour Day"))
|
|
102
|
+
|
|
103
|
+
# Remembrance Day.
|
|
104
|
+
self._add_observed(self._add_remembrance_day(tr("Remembrance Day")))
|
|
105
|
+
|
|
106
|
+
self._add_observed(
|
|
107
|
+
# Christmas Day.
|
|
108
|
+
self._add_christmas_day(tr("Christmas Day")),
|
|
109
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
self._add_observed(
|
|
113
|
+
# Boxing Day.
|
|
114
|
+
self._add_christmas_day_two(tr("Boxing Day")),
|
|
115
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class BM(Bermuda):
|
|
120
|
+
pass
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
class BMU(Bermuda):
|
|
124
|
+
pass
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
class BermudaStaticHolidays:
|
|
128
|
+
"""Bermuda special holidays.
|
|
129
|
+
|
|
130
|
+
References:
|
|
131
|
+
* [June 5, 2007 Holiday](https://web.archive.org/web/20250530122818/https://www.bermudalaws.bm/Laws/Annual%20Law/Statutory%20Instruments/2007/Proclamation)
|
|
132
|
+
* Portuguese Welcome 170th Anniversary
|
|
133
|
+
* <https://web.archive.org/web/20241210201648/https://www.royalgazette.com/other/news/article/20191025/portuguese-welcome-170th-anniversary-holiday/>
|
|
134
|
+
* <https://web.archive.org/web/20250530122008/https://www.bermudalaws.bm/Laws/Annual%20Law/Statutory%20Instruments/2018/Proclamation%20-%20Portguese%20Public%20Holiday>
|
|
135
|
+
* Flora Duffy Day
|
|
136
|
+
* <https://web.archive.org/web/20240613083451/https://bernews.com/2021/10/governor-signs-flora-duffy-day-proclamation/>
|
|
137
|
+
* <https://web.archive.org/web/20250530113359/https://www.bermudalaws.bm/Laws/Annual%20Law/Statutory%20Instruments/2021/Proclamation%20for%2018%20October%202021%20Holiday>
|
|
138
|
+
* The Coronation of His Majesty King Charles III Holiday
|
|
139
|
+
* <https://web.archive.org/web/20250222035055/https://gov.bm/articles/coronation-his-majesty-king-charles-iii-her-majesty-queen-consort>
|
|
140
|
+
* <https://web.archive.org/web/20250530112129/https://www.bermudalaws.bm/Laws/Annual%20Law/Statutory%20Instruments/2023/Proclamation%20for%208%20May%202023%20Holiday>
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
special_public_holidays = {
|
|
144
|
+
# Public Holiday.
|
|
145
|
+
2007: (JUN, 5, tr("Public Holiday")),
|
|
146
|
+
# Portuguese Welcome 170th Anniversary.
|
|
147
|
+
2019: (NOV, 4, tr("Portuguese Welcome 170th Anniversary")),
|
|
148
|
+
# Flora Duffy Day.
|
|
149
|
+
2021: (OCT, 18, tr("Flora Duffy Day")),
|
|
150
|
+
# The Coronation of His Majesty King Charles III.
|
|
151
|
+
2023: (MAY, 8, tr("The Coronation of His Majesty King Charles III")),
|
|
152
|
+
}
|
holidays/countries/bolivia.py
CHANGED
|
@@ -25,15 +25,15 @@ class Bolivia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
25
25
|
"""Bolivia holidays.
|
|
26
26
|
|
|
27
27
|
References:
|
|
28
|
-
* [Supreme Decree #14260](https://bolivia.infoleyes.com/norma/1141/decreto-supremo-14260)
|
|
29
|
-
* [Supreme Decree #21060](https://bolivia.infoleyes.com/norma/1211/decreto-supremo-21060)
|
|
30
|
-
* [Supreme Decree #22352](https://bolivia.infoleyes.com/norma/1310/decreto-supremo-22352)
|
|
31
|
-
* [Supreme Decree #0173](https://bolivia.infoleyes.com/norma/829/decreto-supremo-0173)
|
|
32
|
-
* [Supreme Decree #0405](https://bolivia.infoleyes.com/norma/1252/decreto-supremo-0405)
|
|
33
|
-
* [Supreme Decree #1210](https://bolivia.infoleyes.com/norma/3756/decreto-supremo-1210)
|
|
34
|
-
* [Supreme Decree #2750](https://bolivia.infoleyes.com/norma/6023/decreto-supremo-2750)
|
|
28
|
+
* [Supreme Decree #14260](https://web.archive.org/web/20250428205639/https://bolivia.infoleyes.com/norma/1141/decreto-supremo-14260)
|
|
29
|
+
* [Supreme Decree #21060](https://web.archive.org/web/20250428210031/https://bolivia.infoleyes.com/norma/1211/decreto-supremo-21060)
|
|
30
|
+
* [Supreme Decree #22352](https://web.archive.org/web/20250428210103/https://bolivia.infoleyes.com/norma/1310/decreto-supremo-22352)
|
|
31
|
+
* [Supreme Decree #0173](https://web.archive.org/web/20250428210129/https://bolivia.infoleyes.com/norma/829/decreto-supremo-0173)
|
|
32
|
+
* [Supreme Decree #0405](https://web.archive.org/web/20250428210132/https://bolivia.infoleyes.com/norma/1252/decreto-supremo-0405)
|
|
33
|
+
* [Supreme Decree #1210](https://web.archive.org/web/20250428210105/https://bolivia.infoleyes.com/norma/3756/decreto-supremo-1210)
|
|
34
|
+
* [Supreme Decree #2750](https://web.archive.org/web/20250428210116/https://bolivia.infoleyes.com/norma/6023/decreto-supremo-2750)
|
|
35
35
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Bolivia>
|
|
36
|
-
* <https://www.officeholidays.com/countries/bolivia>
|
|
36
|
+
* <https://web.archive.org/web/20250120171827/https://www.officeholidays.com/countries/bolivia>
|
|
37
37
|
"""
|
|
38
38
|
|
|
39
39
|
country = "BO"
|
|
@@ -46,9 +46,9 @@ class BosniaAndHerzegovina(
|
|
|
46
46
|
|
|
47
47
|
References:
|
|
48
48
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Bosnia_and_Herzegovina>
|
|
49
|
-
* <https://www.paragraf.ba/neradni-dani-fbih.html>
|
|
50
|
-
* <https://www.paragraf.ba/neradni-dani-republike-srpske.html>
|
|
51
|
-
* <https://www.paragraf.ba/neradni-dani-brcko.html>
|
|
49
|
+
* <https://web.archive.org/web/20250415045455/https://www.paragraf.ba/neradni-dani-fbih.html>
|
|
50
|
+
* <https://web.archive.org/web/20250415085409/https://www.paragraf.ba/neradni-dani-republike-srpske.html>
|
|
51
|
+
* <https://web.archive.org/web/20250414212923/https://www.paragraf.ba/neradni-dani-brcko.html>
|
|
52
52
|
|
|
53
53
|
Observed holidays rules:
|
|
54
54
|
* BIH: if first day of New Year's Day and Labor Day fall on Sunday, observed on Tuesday.
|
|
@@ -75,7 +75,7 @@ class BosniaAndHerzegovina(
|
|
|
75
75
|
}
|
|
76
76
|
supported_languages = ("bs", "en_US", "sr", "uk")
|
|
77
77
|
|
|
78
|
-
def __init__(self, islamic_show_estimated: bool = True,
|
|
78
|
+
def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
|
|
79
79
|
"""
|
|
80
80
|
Args:
|
|
81
81
|
islamic_show_estimated:
|
holidays/countries/botswana.py
CHANGED
|
@@ -24,10 +24,10 @@ class Botswana(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, St
|
|
|
24
24
|
"""Botswana holidays.
|
|
25
25
|
|
|
26
26
|
References:
|
|
27
|
-
* <https://www.gov.bw/public-holidays>
|
|
28
|
-
* <https://publicholidays.africa/botswana/2021-dates/>
|
|
29
|
-
* <https://www.timeanddate.com/holidays/botswana/>
|
|
30
|
-
* <http://www.ilo.org/dyn/travail/docs/1766/Public%20Holidays%20Act.pdf>
|
|
27
|
+
* <https://web.archive.org/web/20250126165541/https://www.gov.bw/public-holidays>
|
|
28
|
+
* <https://web.archive.org/web/20240303024114/https://publicholidays.africa/botswana/2021-dates/>
|
|
29
|
+
* <https://web.archive.org/web/20250126135243/https://www.timeanddate.com/holidays/botswana/>
|
|
30
|
+
* <https://web.archive.org/web/20231103081712/http://www.ilo.org/dyn/travail/docs/1766/Public%20Holidays%20Act.pdf>
|
|
31
31
|
"""
|
|
32
32
|
|
|
33
33
|
country = "BW"
|