holidays 0.68__py3-none-any.whl → 0.70__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 +1 -1
- holidays/calendars/__init__.py +2 -1
- holidays/calendars/balinese_saka.py +112 -0
- holidays/calendars/buddhist.py +1 -1
- holidays/calendars/chinese.py +1 -1
- holidays/calendars/custom.py +1 -1
- holidays/calendars/gregorian.py +1 -1
- holidays/calendars/hebrew.py +1 -1
- holidays/calendars/hindu.py +866 -2
- holidays/calendars/islamic.py +161 -1
- holidays/calendars/julian.py +1 -1
- holidays/calendars/julian_revised.py +1 -1
- holidays/calendars/persian.py +1 -1
- holidays/calendars/sinhala.py +1 -1
- holidays/calendars/thai.py +309 -257
- holidays/constants.py +3 -1
- holidays/countries/__init__.py +7 -1
- holidays/countries/afghanistan.py +17 -7
- holidays/countries/albania.py +16 -7
- holidays/countries/algeria.py +14 -10
- holidays/countries/american_samoa.py +12 -6
- holidays/countries/andorra.py +5 -4
- holidays/countries/angola.py +15 -14
- holidays/countries/antigua_and_barbuda.py +145 -0
- holidays/countries/argentina.py +787 -169
- holidays/countries/armenia.py +5 -6
- holidays/countries/aruba.py +11 -9
- holidays/countries/australia.py +21 -20
- holidays/countries/austria.py +3 -1
- holidays/countries/azerbaijan.py +30 -19
- holidays/countries/bahamas.py +13 -11
- holidays/countries/bahrain.py +14 -7
- holidays/countries/bangladesh.py +5 -4
- holidays/countries/barbados.py +11 -9
- holidays/countries/belarus.py +15 -15
- holidays/countries/belgium.py +8 -6
- holidays/countries/belize.py +7 -6
- holidays/countries/bolivia.py +12 -11
- holidays/countries/bosnia_and_herzegovina.py +21 -11
- holidays/countries/botswana.py +8 -6
- holidays/countries/brazil.py +8 -7
- holidays/countries/brunei.py +56 -62
- holidays/countries/bulgaria.py +9 -10
- holidays/countries/burkina_faso.py +14 -5
- holidays/countries/burundi.py +17 -12
- holidays/countries/cambodia.py +15 -24
- holidays/countries/cameroon.py +16 -7
- holidays/countries/canada.py +13 -12
- holidays/countries/chad.py +15 -6
- holidays/countries/chile.py +29 -28
- holidays/countries/china.py +39 -38
- holidays/countries/colombia.py +15 -20
- holidays/countries/congo.py +6 -7
- holidays/countries/costa_rica.py +11 -10
- holidays/countries/croatia.py +8 -5
- holidays/countries/cuba.py +30 -27
- holidays/countries/curacao.py +6 -4
- holidays/countries/cyprus.py +4 -5
- holidays/countries/czechia.py +7 -6
- holidays/countries/denmark.py +5 -6
- holidays/countries/djibouti.py +11 -3
- holidays/countries/dominica.py +18 -16
- holidays/countries/dominican_republic.py +6 -4
- holidays/countries/ecuador.py +5 -4
- holidays/countries/egypt.py +10 -11
- holidays/countries/el_salvador.py +6 -5
- holidays/countries/estonia.py +3 -1
- holidays/countries/eswatini.py +6 -4
- holidays/countries/ethiopia.py +26 -11
- holidays/countries/fiji.py +183 -0
- holidays/countries/finland.py +11 -10
- holidays/countries/france.py +6 -9
- holidays/countries/gabon.py +17 -8
- holidays/countries/georgia.py +7 -7
- holidays/countries/germany.py +11 -11
- holidays/countries/ghana.py +14 -6
- holidays/countries/greece.py +4 -5
- holidays/countries/greenland.py +5 -6
- holidays/countries/guam.py +12 -6
- holidays/countries/guatemala.py +7 -9
- holidays/countries/guernsey.py +37 -34
- holidays/countries/guinea.py +182 -0
- holidays/countries/haiti.py +6 -5
- holidays/countries/honduras.py +8 -4
- holidays/countries/hongkong.py +49 -60
- holidays/countries/hungary.py +26 -23
- holidays/countries/iceland.py +5 -4
- holidays/countries/india.py +494 -174
- holidays/countries/indonesia.py +68 -108
- holidays/countries/iran.py +18 -9
- holidays/countries/ireland.py +5 -4
- holidays/countries/isle_of_man.py +2 -2
- holidays/countries/israel.py +4 -5
- holidays/countries/italy.py +5 -4
- holidays/countries/ivory_coast.py +156 -0
- holidays/countries/jamaica.py +6 -4
- holidays/countries/japan.py +5 -5
- holidays/countries/jersey.py +29 -26
- holidays/countries/jordan.py +13 -6
- holidays/countries/kazakhstan.py +72 -51
- holidays/countries/kenya.py +28 -18
- holidays/countries/kuwait.py +14 -7
- holidays/countries/kyrgyzstan.py +11 -6
- holidays/countries/laos.py +21 -29
- holidays/countries/latvia.py +7 -5
- holidays/countries/lesotho.py +6 -5
- holidays/countries/liechtenstein.py +5 -5
- holidays/countries/lithuania.py +4 -5
- holidays/countries/luxembourg.py +5 -3
- holidays/countries/macau.py +480 -0
- holidays/countries/madagascar.py +5 -4
- holidays/countries/malawi.py +6 -4
- holidays/countries/malaysia.py +30 -18
- holidays/countries/maldives.py +14 -7
- holidays/countries/malta.py +10 -19
- holidays/countries/marshall_islands.py +6 -4
- holidays/countries/mauritania.py +13 -6
- holidays/countries/mexico.py +8 -7
- holidays/countries/moldova.py +6 -4
- holidays/countries/monaco.py +6 -4
- holidays/countries/montenegro.py +16 -7
- holidays/countries/morocco.py +13 -8
- holidays/countries/mozambique.py +3 -1
- holidays/countries/namibia.py +7 -5
- holidays/countries/netherlands.py +6 -6
- holidays/countries/new_zealand.py +3 -1
- holidays/countries/nicaragua.py +6 -5
- holidays/countries/nigeria.py +13 -5
- holidays/countries/north_macedonia.py +13 -5
- holidays/countries/northern_mariana_islands.py +12 -6
- holidays/countries/norway.py +15 -15
- holidays/countries/pakistan.py +48 -18
- holidays/countries/palau.py +13 -11
- holidays/countries/panama.py +9 -8
- holidays/countries/papua_new_guinea.py +25 -21
- holidays/countries/paraguay.py +10 -9
- holidays/countries/peru.py +4 -5
- holidays/countries/philippines.py +32 -18
- holidays/countries/poland.py +7 -6
- holidays/countries/portugal.py +13 -15
- holidays/countries/puerto_rico.py +12 -6
- holidays/countries/qatar.py +172 -0
- holidays/countries/romania.py +6 -4
- holidays/countries/russia.py +6 -4
- holidays/countries/saint_kitts_and_nevis.py +24 -22
- holidays/countries/saint_lucia.py +8 -7
- holidays/countries/samoa.py +7 -6
- holidays/countries/san_marino.py +4 -3
- holidays/countries/saudi_arabia.py +15 -15
- holidays/countries/serbia.py +3 -4
- holidays/countries/seychelles.py +22 -26
- holidays/countries/singapore.py +33 -38
- holidays/countries/slovakia.py +6 -5
- holidays/countries/slovenia.py +7 -6
- holidays/countries/south_africa.py +8 -6
- holidays/countries/south_korea.py +25 -32
- holidays/countries/spain.py +31 -24
- holidays/countries/sri_lanka.py +52 -42
- holidays/countries/sweden.py +20 -19
- holidays/countries/switzerland.py +6 -5
- holidays/countries/taiwan.py +230 -31
- holidays/countries/tanzania.py +34 -27
- holidays/countries/thailand.py +134 -142
- holidays/countries/timor_leste.py +38 -17
- holidays/countries/tonga.py +46 -42
- holidays/countries/tunisia.py +9 -3
- holidays/countries/turkey.py +17 -9
- holidays/countries/tuvalu.py +12 -11
- holidays/countries/ukraine.py +54 -54
- holidays/countries/united_arab_emirates.py +43 -30
- holidays/countries/united_kingdom.py +7 -6
- holidays/countries/united_states.py +130 -86
- holidays/countries/united_states_minor_outlying_islands.py +12 -6
- holidays/countries/united_states_virgin_islands.py +12 -6
- holidays/countries/uruguay.py +10 -9
- holidays/countries/uzbekistan.py +16 -7
- holidays/countries/vanuatu.py +7 -5
- holidays/countries/vatican_city.py +16 -15
- holidays/countries/venezuela.py +11 -14
- holidays/countries/vietnam.py +15 -11
- holidays/countries/zambia.py +8 -6
- holidays/countries/zimbabwe.py +6 -4
- holidays/deprecations/v1_incompatibility.py +1 -1
- holidays/financial/__init__.py +1 -1
- holidays/financial/brasil_bolsa_balcao.py +14 -13
- holidays/financial/european_central_bank.py +7 -6
- holidays/financial/ice_futures_europe.py +7 -6
- holidays/financial/ny_stock_exchange.py +13 -10
- holidays/groups/__init__.py +2 -1
- holidays/groups/balinese_saka.py +45 -0
- holidays/groups/buddhist.py +1 -1
- holidays/groups/chinese.py +69 -4
- holidays/groups/christian.py +1 -1
- holidays/groups/custom.py +1 -1
- holidays/groups/eastern.py +1 -1
- holidays/groups/hebrew.py +1 -1
- holidays/groups/hindu.py +256 -1
- holidays/groups/international.py +1 -1
- holidays/groups/islamic.py +17 -3
- holidays/groups/persian.py +1 -1
- holidays/groups/sinhala.py +1 -1
- holidays/groups/thai.py +1 -7
- holidays/helpers.py +1 -1
- holidays/holiday_base.py +410 -273
- holidays/ical.py +228 -0
- holidays/locale/ar_QA/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/de/LC_MESSAGES/PL.mo +0 -0
- holidays/locale/en_CI/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_HK/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/en_IN/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/en_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/en_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/GN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/es/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/GN.mo +0 -0
- holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/pt_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/pt_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/tet/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/th/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/ur_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/zh_HK/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/zh_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/zh_TW/LC_MESSAGES/TW.mo +0 -0
- holidays/mixins.py +2 -2
- holidays/observed_holiday_base.py +5 -2
- holidays/registry.py +7 -1
- holidays/utils.py +151 -151
- holidays/version.py +2 -2
- holidays-0.70.dist-info/METADATA +1404 -0
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/RECORD +253 -222
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/WHEEL +1 -1
- holidays-0.68.dist-info/AUTHORS → holidays-0.70.dist-info/licenses/AUTHORS.md +7 -2
- {holidays-0.68.dist-info → holidays-0.70.dist-info/licenses}/LICENSE +1 -1
- holidays-0.68.dist-info/METADATA +0 -1080
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/top_level.txt +0 -0
holidays/countries/armenia.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -18,13 +18,12 @@ from holidays.holiday_base import HolidayBase
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Armenia(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
21
|
-
"""
|
|
22
|
-
Armenia holidays.
|
|
21
|
+
"""Armenia holidays.
|
|
23
22
|
|
|
24
23
|
References:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Armenia>
|
|
25
|
+
* <http://www.parliament.am/legislation.php?sel=show&ID=1274&lang=arm&enc=utf8>
|
|
26
|
+
* <https://www.arlis.am/documentview.aspx?docid=259>
|
|
28
27
|
"""
|
|
29
28
|
|
|
30
29
|
country = "AM"
|
holidays/countries/aruba.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -19,14 +19,16 @@ from holidays.holiday_base import HolidayBase
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class Aruba(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
"""Aruba holidays.
|
|
23
|
+
|
|
24
|
+
References:
|
|
25
|
+
* <https://www.government.aw/information-public-services/hiring-people_47940/item/holidays_43823.html>
|
|
26
|
+
* <https://www.overheid.aw/informatie-dienstverlening/ondernemen-en-werken-subthemas_46970/item/feestdagen_37375.html>
|
|
27
|
+
* <https://www.gobierno.aw/informacion-tocante-servicio/haci-negoshi-y-traha-sub-topics_47789/item/dia-di-fiesta_41242.html>
|
|
28
|
+
* <https://www.visitaruba.com/about-aruba/national-holidays-and-celebrations/>
|
|
29
|
+
* <https://www.arubatoday.com/we-celebrate-our-national-hero-betico-croes/>
|
|
30
|
+
* <https://www.caribbeannewsglobal.com/carnival-monday-remains-a-festive-day-in-aruba/>
|
|
31
|
+
* <https://www.aruba.com/us/calendar/national-anthem-and-flag-day>
|
|
30
32
|
"""
|
|
31
33
|
|
|
32
34
|
country = "AW"
|
holidays/countries/australia.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -26,26 +26,27 @@ from holidays.observed_holiday_base import (
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
class Australia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
29
|
-
"""
|
|
29
|
+
"""Australia holidays.
|
|
30
|
+
|
|
30
31
|
References:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
32
|
+
* <https://www.qld.gov.au/recreation/travel/holidays>
|
|
33
|
+
* [ACT Holidays Act 1958](https://www.legislation.act.gov.au/a/1958-19)
|
|
34
|
+
* [ACT 2013-2023](https://www.cmtedd.act.gov.au/archived-content/holidays/previous-years)
|
|
35
|
+
* [NSW Banks and Bank Holidays Act 1912](https://legislation.nsw.gov.au/view/html/repealed/current/act-1912-043)
|
|
36
|
+
* [NSW Public Holidays Act 2010](https://legislation.nsw.gov.au/view/html/inforce/current/act-2010-115)
|
|
37
|
+
* [NT Public Holidays Act 1981](https://legislation.nt.gov.au/api/sitecore/Act/PDF?id=12145)
|
|
38
|
+
* [QLD Holidays Act 1983](https://www.legislation.qld.gov.au/view/html/inforce/current/act-1983-018)
|
|
39
|
+
* [QLD 2012-2024](https://www.qld.gov.au/recreation/travel/holidays/public)
|
|
40
|
+
* [SA Holidays Act 1910](https://www.legislation.sa.gov.au/LZ/C/A/HOLIDAYS%20ACT%201910.aspx)
|
|
41
|
+
* [SA Public Holidays Act 2023](https://www.legislation.sa.gov.au/LZ/C/A/Public%20Holidays%20Act%202023.aspx)
|
|
42
|
+
* [SA 2023-2024](https://www.safework.sa.gov.au/resources/public-holidays)
|
|
43
|
+
* [SA 2007-2021](https://safework.sa.gov.au/__data/assets/pdf_file/0007/235474/Public-Holidays-since-2007.pdf)
|
|
44
|
+
* [TAS Statutory Holidays Act 2000](https://www.legislation.tas.gov.au/view/html/inforce/current/act-2000-096)
|
|
45
|
+
* [VIC Public Holidays Act 1993](https://www.legislation.vic.gov.au/in-force/acts/public-holidays-act-1993/027)
|
|
46
|
+
* [VIC Minister appointment](https://www.gazette.vic.gov.au/gazette/Gazettes2015/GG2015S229.pdf)
|
|
47
|
+
* [VIC 2018-2024](https://business.vic.gov.au/business-information/public-holidays)
|
|
48
|
+
* [WA Public and Bank Holidays Act 1972](https://www.legislation.wa.gov.au/legislation/statutes.nsf/law_a639.html)
|
|
49
|
+
* [WA 2019-2023](https://www.commerce.wa.gov.au/labour-relations/previous-years-public-holiday-dates)
|
|
49
50
|
"""
|
|
50
51
|
|
|
51
52
|
country = "AU"
|
holidays/countries/austria.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -18,6 +18,8 @@ from holidays.holiday_base import HolidayBase
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Austria(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
21
|
+
"""Austria holidays."""
|
|
22
|
+
|
|
21
23
|
country = "AT"
|
|
22
24
|
default_language = "de"
|
|
23
25
|
supported_categories = (BANK, PUBLIC)
|
holidays/countries/azerbaijan.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -25,11 +25,12 @@ from holidays.observed_holiday_base import (
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class Azerbaijan(ObservedHolidayBase, InternationalHolidays, IslamicHolidays, StaticHolidays):
|
|
28
|
-
"""
|
|
28
|
+
"""Azerbaijan holidays.
|
|
29
|
+
|
|
29
30
|
References:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Azerbaijan>
|
|
32
|
+
* <https://az.wikipedia.org/wiki/Az%C9%99rbaycan%C4%B1n_d%C3%B6vl%C9%99t_bayramlar%C4%B1_v%C9%99_x%C3%BCsusi_g%C3%BCnl%C9%99ri>
|
|
33
|
+
* <https://www.sosial.gov.az/en/prod-calendar>
|
|
33
34
|
"""
|
|
34
35
|
|
|
35
36
|
country = "AZ"
|
|
@@ -44,9 +45,17 @@ class Azerbaijan(ObservedHolidayBase, InternationalHolidays, IslamicHolidays, St
|
|
|
44
45
|
supported_languages = ("az", "en_US", "uk")
|
|
45
46
|
start_year = 1990
|
|
46
47
|
|
|
47
|
-
def __init__(self, *args, **kwargs):
|
|
48
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
49
|
+
"""
|
|
50
|
+
Args:
|
|
51
|
+
islamic_show_estimated:
|
|
52
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
53
|
+
if holiday date is estimated.
|
|
54
|
+
"""
|
|
48
55
|
InternationalHolidays.__init__(self)
|
|
49
|
-
IslamicHolidays.__init__(
|
|
56
|
+
IslamicHolidays.__init__(
|
|
57
|
+
self, cls=AzerbaijanIslamicHolidays, show_estimated=islamic_show_estimated
|
|
58
|
+
)
|
|
50
59
|
StaticHolidays.__init__(self, AzerbaijanStaticHolidays)
|
|
51
60
|
kwargs.setdefault("observed_rule", SAT_SUN_TO_NEXT_WORKDAY)
|
|
52
61
|
kwargs.setdefault("observed_since", 2006)
|
|
@@ -253,20 +262,22 @@ class AzerbaijanIslamicHolidays(_CustomIslamicHolidays):
|
|
|
253
262
|
|
|
254
263
|
|
|
255
264
|
class AzerbaijanStaticHolidays:
|
|
256
|
-
"""
|
|
265
|
+
"""Azerbaijan special holidays.
|
|
266
|
+
|
|
257
267
|
Substituted holidays references:
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
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>
|
|
278
|
+
|
|
268
279
|
Special holidays references:
|
|
269
|
-
|
|
280
|
+
* <https://www.msk.gov.az/en/elections/pages/municipal-elections/belediyye-29-01-2025>
|
|
270
281
|
"""
|
|
271
282
|
|
|
272
283
|
eid_al_adha = tr("Qurban bayrami")
|
holidays/countries/bahamas.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -23,18 +23,20 @@ from holidays.observed_holiday_base import (
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class Bahamas(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
26
|
-
"""
|
|
26
|
+
"""Bahamas holidays.
|
|
27
|
+
|
|
27
28
|
References:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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://laws.bahamas.gov.bs/cms/images/LEGISLATION/PRINCIPAL/2013/2013-0040/MajorityRulePublicHolidayAct2013_1.pdf>
|
|
32
|
+
* <https://laws.bahamas.gov.bs/cms/images/LEGISLATION/PRINCIPAL/2013/2013-0009/RandolFawkesLabourDayAct2013_1.pdf>
|
|
33
|
+
* <http://www.tribune242.com/news/2013/oct/12/national-heroes-day-formally-established/>
|
|
34
|
+
* <https://eleutheranews.com/?p=3594>
|
|
35
|
+
|
|
34
36
|
Checked With:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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/>
|
|
38
40
|
"""
|
|
39
41
|
|
|
40
42
|
country = "BS"
|
holidays/countries/bahrain.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -19,12 +19,11 @@ from holidays.holiday_base import HolidayBase
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class Bahrain(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
22
|
-
"""
|
|
23
|
-
Bahrain holidays.
|
|
22
|
+
"""Bahrain holidays.
|
|
24
23
|
|
|
25
24
|
References:
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
* <https://www.cbb.gov.bh/official-bank-holidays/>
|
|
26
|
+
* <https://www.officeholidays.com/countries/bahrain/>
|
|
28
27
|
"""
|
|
29
28
|
|
|
30
29
|
country = "BH"
|
|
@@ -34,9 +33,17 @@ class Bahrain(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
34
33
|
supported_languages = ("ar", "en_US")
|
|
35
34
|
weekend = {FRI, SAT}
|
|
36
35
|
|
|
37
|
-
def __init__(self, *args, **kwargs):
|
|
36
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
37
|
+
"""
|
|
38
|
+
Args:
|
|
39
|
+
islamic_show_estimated:
|
|
40
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
41
|
+
if holiday date is estimated.
|
|
42
|
+
"""
|
|
38
43
|
InternationalHolidays.__init__(self)
|
|
39
|
-
IslamicHolidays.__init__(
|
|
44
|
+
IslamicHolidays.__init__(
|
|
45
|
+
self, cls=BahrainIslamicHolidays, show_estimated=islamic_show_estimated
|
|
46
|
+
)
|
|
40
47
|
super().__init__(*args, **kwargs)
|
|
41
48
|
|
|
42
49
|
def _populate_public_holidays(self):
|
holidays/countries/bangladesh.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -16,10 +16,11 @@ from holidays.holiday_base import HolidayBase
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class Bangladesh(HolidayBase, InternationalHolidays):
|
|
19
|
-
"""
|
|
19
|
+
"""Bangladesh holidays.
|
|
20
|
+
|
|
20
21
|
References:
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
* <https://mopa.gov.bd/sites/default/files/files/mopa.gov.bd/public_holiday/61c35b73_e335_462a_9bcf_4695b23b6d82/reg4-2019-212.PDF>
|
|
23
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Bangladesh>
|
|
23
24
|
"""
|
|
24
25
|
|
|
25
26
|
country = "BD"
|
holidays/countries/barbados.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -21,14 +21,16 @@ from holidays.observed_holiday_base import (
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
class Barbados(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
"""Barbados holidays.
|
|
25
|
+
|
|
26
|
+
References:
|
|
27
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Barbados>
|
|
28
|
+
* <https://www.timeanddate.com/holidays/barbados/>
|
|
29
|
+
* [Public Holidays Act Cap.352](http://barbadosparliament-laws.com/en/showdoc/cs/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/>
|
|
32
34
|
"""
|
|
33
35
|
|
|
34
36
|
country = "BB"
|
holidays/countries/belarus.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -20,20 +20,19 @@ from holidays.holiday_base import HolidayBase
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class Belarus(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
23
|
-
"""
|
|
24
|
-
Belarus holidays.
|
|
23
|
+
"""Belarus holidays.
|
|
25
24
|
|
|
26
25
|
References:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
+
* <http://www.belarus.by/en/about-belarus/national-holidays>
|
|
30
|
+
* <http://laws.newsby.org/documents/ukazp/pos05/ukaz05806.htm>
|
|
31
|
+
* <http://president.gov.by/uploads/documents/2019/464uk.pdf>
|
|
32
|
+
* <https://ru.wikipedia.org/wiki/Праздники_Белоруссии>
|
|
34
33
|
|
|
35
34
|
Cross-checked With:
|
|
36
|
-
|
|
35
|
+
* <https://president.gov.by/en/gosudarstvo/prazdniki/calendar-2024>
|
|
37
36
|
"""
|
|
38
37
|
|
|
39
38
|
country = "BY"
|
|
@@ -146,10 +145,11 @@ class BLR(Belarus):
|
|
|
146
145
|
|
|
147
146
|
|
|
148
147
|
class BelarusStaticHolidays:
|
|
149
|
-
"""
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
148
|
+
"""Belarus special holidays.
|
|
149
|
+
|
|
150
|
+
References:
|
|
151
|
+
* <https://belarusbank.by/en/financial-institutions/11151>
|
|
152
|
+
* <https://belarusbank.by/en/financial-institutions/11160>
|
|
153
153
|
"""
|
|
154
154
|
|
|
155
155
|
# Date format (see strftime() Format Codes)
|
holidays/countries/belgium.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -18,11 +18,13 @@ from holidays.holiday_base import HolidayBase
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Belgium(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
"""Belgium holidays.
|
|
22
|
+
|
|
23
|
+
References:
|
|
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%C3%AB>
|
|
27
|
+
* <https://www.nbb.be/en/about-national-bank/national-bank-belgium/public-holidays>
|
|
26
28
|
"""
|
|
27
29
|
|
|
28
30
|
country = "BE"
|
holidays/countries/belize.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -20,12 +20,13 @@ from holidays.observed_holiday_base import (
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class Belize(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
23
|
-
"""
|
|
23
|
+
"""Belize holidays.
|
|
24
|
+
|
|
24
25
|
References:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Belize>
|
|
27
|
+
* <http://www.belizelaw.org/web/lawadmin/PDF%20files/cap289.pdf>
|
|
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/>
|
|
29
30
|
"""
|
|
30
31
|
|
|
31
32
|
country = "BZ"
|
holidays/countries/bolivia.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -22,17 +22,18 @@ from holidays.observed_holiday_base import (
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
class Bolivia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
25
|
-
"""
|
|
25
|
+
"""Bolivia holidays.
|
|
26
|
+
|
|
26
27
|
References:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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)
|
|
35
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Bolivia>
|
|
36
|
+
* <https://www.officeholidays.com/countries/bolivia>
|
|
36
37
|
"""
|
|
37
38
|
|
|
38
39
|
country = "BO"
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -42,16 +42,18 @@ from holidays.observed_holiday_base import (
|
|
|
42
42
|
class BosniaAndHerzegovina(
|
|
43
43
|
ObservedHolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays
|
|
44
44
|
):
|
|
45
|
-
"""
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
"""Bosnia and Herzegovina holidays.
|
|
46
|
+
|
|
47
|
+
References:
|
|
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>
|
|
50
52
|
|
|
51
53
|
Observed holidays rules:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
* BIH: if first day of New Year's Day and Labor Day fall on Sunday, observed on Tuesday.
|
|
55
|
+
* BRC: if holiday fall on Sunday, observed on next working day.
|
|
56
|
+
* SRP: if second day of New Year's Day and Labor Day fall on Sunday, observed on Monday.
|
|
55
57
|
"""
|
|
56
58
|
|
|
57
59
|
country = "BA"
|
|
@@ -73,10 +75,18 @@ class BosniaAndHerzegovina(
|
|
|
73
75
|
"RS": "SRP",
|
|
74
76
|
}
|
|
75
77
|
|
|
76
|
-
def __init__(self, *args, **kwargs):
|
|
78
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **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
|
+
"""
|
|
77
85
|
ChristianHolidays.__init__(self, JULIAN_CALENDAR)
|
|
78
86
|
InternationalHolidays.__init__(self)
|
|
79
|
-
IslamicHolidays.__init__(
|
|
87
|
+
IslamicHolidays.__init__(
|
|
88
|
+
self, cls=BosniaAndHerzegovinaIslamicHolidays, show_estimated=islamic_show_estimated
|
|
89
|
+
)
|
|
80
90
|
kwargs.setdefault("observed_rule", SUN_TO_NEXT_MON)
|
|
81
91
|
super().__init__(*args, **kwargs)
|
|
82
92
|
|
holidays/countries/botswana.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -21,11 +21,13 @@ from holidays.observed_holiday_base import (
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
class Botswana(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
"""Botswana holidays.
|
|
25
|
+
|
|
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>
|
|
29
31
|
"""
|
|
30
32
|
|
|
31
33
|
country = "BW"
|