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/colombia.py
CHANGED
|
@@ -20,17 +20,17 @@ class Colombia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
20
20
|
"""Colombia holidays.
|
|
21
21
|
|
|
22
22
|
References:
|
|
23
|
-
* [Ley 35 de 1939 (DEC 4)](https://www.funcionpublica.gov.co/eva/gestornormativo/norma_pdf.php?i=86145)
|
|
24
|
-
* [Decreto 2663 de 1950 (AUG 5)](https://www.suin-juriscol.gov.co/viewDocument.asp?id=1874133)
|
|
25
|
-
* [Decreto 3743 de 1950 (DEC 20)](https://
|
|
26
|
-
* [Ley 51 de 1983 (DEC 6)](https://www.funcionpublica.gov.co/eva/gestornormativo/norma.php?i=4954)
|
|
23
|
+
* [Ley 35 de 1939 (DEC 4)](https://web.archive.org/web/20250429071624/https://www.funcionpublica.gov.co/eva/gestornormativo/norma_pdf.php?i=86145)
|
|
24
|
+
* [Decreto 2663 de 1950 (AUG 5)](https://web.archive.org/web/20241113003142/https://www.suin-juriscol.gov.co/viewDocument.asp?id=1874133)
|
|
25
|
+
* [Decreto 3743 de 1950 (DEC 20)](https://web.archive.org/web/20240725032513/http://suin-juriscol.gov.co/viewDocument.asp?id=1535683)
|
|
26
|
+
* [Ley 51 de 1983 (DEC 6)](https://web.archive.org/web/20250423030608/https://www.funcionpublica.gov.co/eva/gestornormativo/norma.php?i=4954)
|
|
27
27
|
|
|
28
28
|
A few links below to calendars from the 1980s to demonstrate this law change.
|
|
29
29
|
In 1984 some calendars still use the old rules, presumably because they were printed
|
|
30
30
|
prior to the declaration of law change:
|
|
31
|
-
* [1981](https://cloud10.todocoleccion.online/calendarios-antiguos/tc/2018/07/02/19/126899607_96874586.jpg)
|
|
32
|
-
* [1982](https://cloud10.todocoleccion.online/calendarios-antiguos/tc/2016/08/19/12/58620712_34642074.jpg)
|
|
33
|
-
* [1984](https://cloud10.todocoleccion.online/calendarios-antiguos/tc/2017/07/12/15/92811790_62818054.jpg)
|
|
31
|
+
* [1981](https://web.archive.org/web/20250427173739/https://cloud10.todocoleccion.online/calendarios-antiguos/tc/2018/07/02/19/126899607_96874586.jpg)
|
|
32
|
+
* [1982](https://web.archive.org/web/20250427173704/https://cloud10.todocoleccion.online/calendarios-antiguos/tc/2016/08/19/12/58620712_34642074.jpg)
|
|
33
|
+
* [1984](https://web.archive.org/web/20250427173707/https://cloud10.todocoleccion.online/calendarios-antiguos/tc/2017/07/12/15/92811790_62818054.jpg)
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
country = "CO"
|
holidays/countries/congo.py
CHANGED
|
@@ -20,8 +20,8 @@ class Congo(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
20
20
|
"""Congo holidays.
|
|
21
21
|
|
|
22
22
|
References:
|
|
23
|
-
* [Loi N° 2-94](http://mokili.free.fr/jours_feries.php)
|
|
24
|
-
* [Loi N° 18-2010](https://www.finances.gouv.cg/sites/default/files/documents/n¯18-2010%20du%2027%20novembre%202010.PDF)
|
|
23
|
+
* [Loi N° 2-94](https://web.archive.org/web/20241003070938/http://mokili.free.fr/jours_feries.php)
|
|
24
|
+
* [Loi N° 18-2010](https://web.archive.org/web/20250427173832/https://www.finances.gouv.cg/sites/default/files/documents/n¯18-2010%20du%2027%20novembre%202010.PDF)
|
|
25
25
|
|
|
26
26
|
Cross-Checked With:
|
|
27
27
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_the_Republic_of_the_Congo>
|
|
@@ -0,0 +1,148 @@
|
|
|
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.groups import ChristianHolidays, InternationalHolidays
|
|
16
|
+
from holidays.observed_holiday_base import (
|
|
17
|
+
ObservedHolidayBase,
|
|
18
|
+
SAT_TO_NEXT_TUE,
|
|
19
|
+
SAT_SUN_TO_NEXT_MON,
|
|
20
|
+
SAT_SUN_TO_NEXT_MON_TUE,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class CookIslands(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
25
|
+
"""Cook Islands holidays.
|
|
26
|
+
|
|
27
|
+
References:
|
|
28
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_the_Cook_Islands>
|
|
29
|
+
* [Public Holidays Amendment Act 1970-71](https://web.archive.org/web/20250530101809/https://cookislandslaws.gov.ck/#/Laws-as-Made?id=414&name=Public%20Holidays%20Amendment%20Act%201970-71%20No%2029)
|
|
30
|
+
* [Public Holidays Act 1999 (Law as Made)](https://web.archive.org/web/20250530120928/https://cookislandslaws.gov.ck/#/Laws-as-Made?id=1241&name=Public%20Holidays%20Act%201999%20No%2017)
|
|
31
|
+
* [Public Holidays (Aitutaki Gospel Day) Order 1989](https://web.archive.org/web/20250530121249/https://parliament.gov.ck/wp-content/uploads/2022/07/Public-Holidays-Aitutaki-Gospel-Day-Order-1990-No.-9.pdf)
|
|
32
|
+
* [Public Holidays Act 1999 (Consolidated Law)](https://web.archive.org/web/20250530101809/https://cookislandslaws.gov.ck/#/InternalConsolidatedLaws?legalId=LOCI.PHA99&parent_id=Public%20Holidays%20Act%201999)
|
|
33
|
+
* [Gospel Days](https://web.archive.org/web/20110928152006/http://www.cookislands.org.uk/gospelday.html)
|
|
34
|
+
* [Public Holidays (Ra o te Ui Ariki) Amendment Act 2011](https://web.archive.org/web/20250530101809/https://cookislandslaws.gov.ck/#/Laws-as-Made?id=1553&name=Public%20Holidays%20(Ra%20o%20te%20Ui%20Ariki)%20Amendment%20Act%202011%20No%204)
|
|
35
|
+
* [Public Holidays (Ra o te Ui Ariki) Amendment 2013](https://web.archive.org/web/20250530122050/https://parliament.gov.ck/wp-content/uploads/2020/02/Public-Holidays-Ra-o-te-Ui-Ariki-No.-4.pdf)
|
|
36
|
+
* [2004](https://web.archive.org/web/20090326004400/http://www.cook-islands.gov.ck/view_release.php?release_id=429)
|
|
37
|
+
* [2008](https://web.archive.org/web/20090326003301/http://www.stats.gov.ck/NewsEvents/PublicHolidays.pdf)
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
country = "CK"
|
|
41
|
+
default_language = "en_CK"
|
|
42
|
+
# %s (observed).
|
|
43
|
+
observed_label = tr("%s (observed)")
|
|
44
|
+
supported_languages = ("en_CK", "en_US")
|
|
45
|
+
# Public Holiday Act 1999.
|
|
46
|
+
start_year = 2000
|
|
47
|
+
|
|
48
|
+
def __init__(self, *args, **kwargs):
|
|
49
|
+
ChristianHolidays.__init__(self)
|
|
50
|
+
InternationalHolidays.__init__(self)
|
|
51
|
+
kwargs.setdefault("observed_rule", SAT_SUN_TO_NEXT_MON)
|
|
52
|
+
super().__init__(*args, **kwargs)
|
|
53
|
+
|
|
54
|
+
def _populate_public_holidays(self):
|
|
55
|
+
self._add_observed(
|
|
56
|
+
# New Year's Day.
|
|
57
|
+
self._add_new_years_day(tr("New Year's Day")),
|
|
58
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
self._add_observed(
|
|
62
|
+
# Day after New Year's Day.
|
|
63
|
+
self._add_new_years_day_two(tr("Day after New Year's Day")),
|
|
64
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
# Anzac Day.
|
|
68
|
+
self._add_anzac_day(tr("Anzac Day"))
|
|
69
|
+
|
|
70
|
+
# Good Friday.
|
|
71
|
+
self._add_good_friday(tr("Good Friday"))
|
|
72
|
+
|
|
73
|
+
# Easter Monday.
|
|
74
|
+
self._add_easter_monday(tr("Easter Monday"))
|
|
75
|
+
|
|
76
|
+
# Sovereign's Birthday.
|
|
77
|
+
self._add_holiday_1st_mon_of_jun(tr("Sovereign's Birthday"))
|
|
78
|
+
|
|
79
|
+
if self._year >= 2012:
|
|
80
|
+
# Day of the House of Ariki.
|
|
81
|
+
name = tr("Ra o te Ui Ariki")
|
|
82
|
+
if self._year >= 2013:
|
|
83
|
+
self._add_holiday_1st_fri_of_jul(name)
|
|
84
|
+
else:
|
|
85
|
+
self._add_holiday_jun_6(name)
|
|
86
|
+
|
|
87
|
+
# Constitution Day.
|
|
88
|
+
self._add_observed(self._add_holiday_aug_4(tr("Constitution Day")))
|
|
89
|
+
|
|
90
|
+
# Cook Islands Gospel Day.
|
|
91
|
+
self._add_observed(self._add_holiday_oct_26(tr("Cook Islands Gospel Day")))
|
|
92
|
+
|
|
93
|
+
self._add_observed(
|
|
94
|
+
# Christmas Day.
|
|
95
|
+
self._add_christmas_day(tr("Christmas Day")),
|
|
96
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
self._add_observed(
|
|
100
|
+
# Boxing Day.
|
|
101
|
+
self._add_christmas_day_two(tr("Boxing Day")),
|
|
102
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
if self._year <= 2011:
|
|
106
|
+
# Penrhyn Gospel Day.
|
|
107
|
+
self._add_observed(self._add_holiday_mar_13(tr("Penrhyn Gospel Day")))
|
|
108
|
+
|
|
109
|
+
# Palmerston Gospel Day.
|
|
110
|
+
self._add_observed(self._add_holiday_may_25(tr("Palmerston Gospel Day")))
|
|
111
|
+
|
|
112
|
+
# Mangaia Gospel Day.
|
|
113
|
+
self._add_observed(self._add_holiday_jun_15(tr("Mangaia Gospel Day")))
|
|
114
|
+
|
|
115
|
+
# Atiu Gospel Day.
|
|
116
|
+
self._add_observed(self._add_holiday_jul_20(tr("Atiu Gospel Day")))
|
|
117
|
+
|
|
118
|
+
# Mitiaro Gospel Day.
|
|
119
|
+
self._add_observed(self._add_holiday_jul_21(tr("Mitiaro Gospel Day")))
|
|
120
|
+
|
|
121
|
+
self._add_observed(
|
|
122
|
+
# Mauke Gospel Day.
|
|
123
|
+
self._add_holiday_jul_23(tr("Mauke Gospel Day")),
|
|
124
|
+
rule=SAT_TO_NEXT_TUE if self._year in {2005, 2011} else None,
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
# Rarotonga Gospel Day.
|
|
128
|
+
self._add_observed(self._add_holiday_jul_25(tr("Rarotonga Gospel Day")))
|
|
129
|
+
|
|
130
|
+
# Manihiki Gospel Day.
|
|
131
|
+
self._add_observed(self._add_holiday_aug_8(tr("Manihiki Gospel Day")))
|
|
132
|
+
|
|
133
|
+
# Rakahanga Gospel Day.
|
|
134
|
+
self._add_observed(self._add_holiday_aug_15(tr("Rakahanga Gospel Day")))
|
|
135
|
+
|
|
136
|
+
# Aitutaki Gospel Day.
|
|
137
|
+
self._add_observed(self._add_holiday_oct_27(tr("Aitutaki Gospel Day")))
|
|
138
|
+
|
|
139
|
+
# Pukapuka Gospel Day.
|
|
140
|
+
self._add_observed(self._add_holiday_dec_8(tr("Pukapuka Gospel Day")))
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
class CK(CookIslands):
|
|
144
|
+
pass
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
class COK(CookIslands):
|
|
148
|
+
pass
|
holidays/countries/costa_rica.py
CHANGED
|
@@ -27,7 +27,7 @@ class CostaRica(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
27
27
|
|
|
28
28
|
References:
|
|
29
29
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Costa_Rica>
|
|
30
|
-
* <http://www.pgrweb.go.cr/scij/avanzada_pgr.aspx>
|
|
30
|
+
* <https://web.archive.org/web/20250328094837/http://www.pgrweb.go.cr/scij/avanzada_pgr.aspx>
|
|
31
31
|
* Law #8442 from 19.04.2005
|
|
32
32
|
* Law #8604 from 17.09.2007
|
|
33
33
|
* Law #8753 from 25.07.2009
|
holidays/countries/croatia.py
CHANGED
|
@@ -20,7 +20,7 @@ class Croatia(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
20
20
|
"""Croatia holidays.
|
|
21
21
|
|
|
22
22
|
References:
|
|
23
|
-
* <https://narodne-novine.nn.hr/clanci/sluzbeni/2019_11_110_2212.html>
|
|
23
|
+
* <https://web.archive.org/web/20250206084954/https://narodne-novine.nn.hr/clanci/sluzbeni/2019_11_110_2212.html>
|
|
24
24
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Croatia>
|
|
25
25
|
* <https://hr.wikipedia.org/wiki/Blagdani_i_spomendani_u_Hrvatskoj>
|
|
26
26
|
|
holidays/countries/cuba.py
CHANGED
|
@@ -21,25 +21,25 @@ class Cuba(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
21
21
|
|
|
22
22
|
References:
|
|
23
23
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Cuba>
|
|
24
|
-
* [1984 (DEC 28)](https://files.sld.cu/prevemi/files/2013/03/ley_49_codigo_trabajo_1984.pdf)
|
|
25
|
-
* [2007 (NOV 19)](https://www.gacetaoficial.gob.cu/sites/default/files/go_x_053_2007.pdf)
|
|
26
|
-
* [2013 (DEC 20)](https://www.gacetaoficial.gob.cu/es/ley-no-116-codigo-de-trabajo)
|
|
24
|
+
* [1984 (DEC 28)](https://web.archive.org/web/20240726190205/https://files.sld.cu/prevemi/files/2013/03/ley_49_codigo_trabajo_1984.pdf)
|
|
25
|
+
* [2007 (NOV 19)](https://web.archive.org/web/20220705173115/https://www.gacetaoficial.gob.cu/sites/default/files/go_x_053_2007.pdf)
|
|
26
|
+
* [2013 (DEC 20)](https://web.archive.org/web/20241125112840/http://www.gacetaoficial.gob.cu/es/ley-no-116-codigo-de-trabajo/)
|
|
27
27
|
|
|
28
28
|
Certain holidays details:
|
|
29
29
|
* Good Friday:
|
|
30
30
|
Granted temporarily in 2012 and 2013, permanently granted in 2013 decree for 2014
|
|
31
31
|
and onwards:
|
|
32
|
-
* <https://www.cnn.com/2012/03/31/world/americas/cuba-good-friday/index.html>
|
|
33
|
-
* <https://www.catholicnewsagency.com/news/29455/cuban-government-makes-good-friday-official-holiday>
|
|
32
|
+
* <https://web.archive.org/web/20250413192145/https://www.cnn.com/2012/03/31/world/americas/cuba-good-friday/index.html>
|
|
33
|
+
* <https://web.archive.org/web/20241005041855/https://www.catholicnewsagency.com/news/29455/cuban-government-makes-good-friday-official-holiday>
|
|
34
34
|
|
|
35
35
|
* Christmas Day:
|
|
36
36
|
In 1969, Christmas was cancelled for the sugar harvest but then was cancelled for good:
|
|
37
|
-
* <https://time.com/vault/issue/1969-11-07/page/44/>
|
|
37
|
+
* <https://web.archive.org/web/20250413192307/https://time.com/vault/issue/1969-11-07/page/44/>
|
|
38
38
|
In 1997, Christmas was temporarily back for the Pope's visit:
|
|
39
|
-
* <
|
|
39
|
+
* <https://web.archive.org/web/20250427131226/https://www.cnn.com/WORLD/9712/15/castro.christmas/>
|
|
40
40
|
In 1998, Christmas returns for good:
|
|
41
|
-
* <https://www.independent.co.uk/news/cuba-ends-its-30year-ban-on-christmas-1193525.html>
|
|
42
|
-
* <https://www.ilo.org/dyn/travail/docs/1320/DECRETO-LEY%20No.%20189-1998.pdf>
|
|
41
|
+
* <https://web.archive.org/web/20250413185514/https://www.independent.co.uk/news/cuba-ends-its-30year-ban-on-christmas-1193525.html>
|
|
42
|
+
* <https://web.archive.org/web/20220508094546/https://www.ilo.org/dyn/travail/docs/1320/DECRETO-LEY%20No.%20189-1998.pdf>
|
|
43
43
|
|
|
44
44
|
For holidays that can be moved to a Monday if they fall on a Sunday, between 1984
|
|
45
45
|
and 2013, the State Committee of Work and Social Security would determine if they
|
holidays/countries/curacao.py
CHANGED
|
@@ -23,8 +23,8 @@ class Curacao(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
23
23
|
"""Curaçao holidays.
|
|
24
24
|
|
|
25
25
|
References:
|
|
26
|
-
* <https://loketdigital.gobiernu.cw/Loket/product/571960bbe1e5fe8712b10a1323630e70>
|
|
27
|
-
* <https://en.wikipedia.org/wiki/Public_holidays_in_Cura
|
|
26
|
+
* <https://web.archive.org/web/20240812164331/http://loketdigital.gobiernu.cw/Loket/product/571960bbe1e5fe8712b10a1323630e70>
|
|
27
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Curaçao>
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
30
|
country = "CW"
|
holidays/countries/cyprus.py
CHANGED
|
@@ -23,7 +23,7 @@ class Cyprus(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
23
23
|
|
|
24
24
|
References:
|
|
25
25
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Cyprus>
|
|
26
|
-
* <https://www.centralbank.cy/en
|
|
26
|
+
* <https://web.archive.org/web/20241127121516/https://www.centralbank.cy/en//the-bank/working-hours-bank-holidays>
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
29
|
country = "CY"
|
holidays/countries/czechia.py
CHANGED
|
@@ -21,9 +21,9 @@ class Czechia(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
21
21
|
|
|
22
22
|
References:
|
|
23
23
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_the_Czech_Republic>
|
|
24
|
-
* [Law 93/1951](https://www.zakonyprolidi.cz/cs/1951-93)
|
|
25
|
-
* [Law 204/1990 (Jan Hus Day)](https://www.zakonyprolidi.cz/cs/1990-204)
|
|
26
|
-
* [Law 245/2000](https://www.zakonyprolidi.cz/cs/2000-245)
|
|
24
|
+
* [Law 93/1951](https://web.archive.org/web/20240924164547/https://www.zakonyprolidi.cz/cs/1951-93)
|
|
25
|
+
* [Law 204/1990 (Jan Hus Day)](https://web.archive.org/web/20240924164541/https://www.zakonyprolidi.cz/cs/1990-204)
|
|
26
|
+
* [Law 245/2000](https://web.archive.org/web/20241215175816/https://www.zakonyprolidi.cz/cs/2000-245)
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
29
|
country = "CZ"
|
holidays/countries/denmark.py
CHANGED
|
@@ -22,8 +22,8 @@ class Denmark(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
22
22
|
|
|
23
23
|
References:
|
|
24
24
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Denmark>
|
|
25
|
-
* <https://www.norden.org/en/info-norden/public-holidays-denmark>
|
|
26
|
-
* <https://www.ft.dk/samling/20222/lovforslag/l13/index.htm>
|
|
25
|
+
* <https://web.archive.org/web/20250422010005/https://www.norden.org/en/info-norden/public-holidays-denmark>
|
|
26
|
+
* <https://web.archive.org/web/20231219155820/http://www.ft.dk/samling/20222/lovforslag/l13/index.htm>
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
29
|
country = "DK"
|
holidays/countries/djibouti.py
CHANGED
|
@@ -29,7 +29,7 @@ class Djibouti(HolidayBase, ChristianHolidays, IslamicHolidays, InternationalHol
|
|
|
29
29
|
# On 27 June 1977, Djibouti gained independence from France.
|
|
30
30
|
start_year = 1978
|
|
31
31
|
|
|
32
|
-
def __init__(self, islamic_show_estimated: bool = True,
|
|
32
|
+
def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
|
|
33
33
|
"""
|
|
34
34
|
Args:
|
|
35
35
|
islamic_show_estimated:
|
holidays/countries/dominica.py
CHANGED
|
@@ -19,16 +19,16 @@ class Dominica(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, St
|
|
|
19
19
|
"""Dominica holidays.
|
|
20
20
|
|
|
21
21
|
References:
|
|
22
|
-
* <https://www.dominica.gov.dm/laws/chapters/chap19-10.pdf>
|
|
23
|
-
* <https://pressroomopm.gov.dm/notice-public-holiday-order-2022/>
|
|
22
|
+
* <https://web.archive.org/web/20241204154212/http://www.dominica.gov.dm/laws/chapters/chap19-10.pdf>
|
|
23
|
+
* <https://web.archive.org/web/20250427181829/https://pressroomopm.gov.dm/notice-public-holiday-order-2022/>
|
|
24
24
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Dominica>
|
|
25
|
-
* <https://dominica.gov.dm/laws/1998/sro1-1998.pdf>
|
|
25
|
+
* <https://web.archive.org/web/20220723095045/https://www.dominica.gov.dm/laws/1998/sro1-1998.pdf>
|
|
26
26
|
|
|
27
27
|
Cross-Checked With:
|
|
28
|
-
* [2010](https://www.dominica-weekly.com/images/dominica-calendar-2010/1600-1280.jpg)
|
|
29
|
-
* [2011-2020](https://dominicaconsulategreece.com/dominica/public-holidays/)
|
|
30
|
-
* <http://www.q95da.com/news/q95-news-received-on-december-29-2020-at-731pm-the-official-public-holiday-calendar-for-2021-approved-by-the-government-of-dominica>
|
|
31
|
-
* [2022-2024](https://dominica.gov.dm/about-dominica/public-holidays)
|
|
28
|
+
* [2010](https://web.archive.org/web/20240826101956/https://www.dominica-weekly.com/images/dominica-calendar-2010/1600-1280.jpg)
|
|
29
|
+
* [2011-2020](https://web.archive.org/web/20241112201134/https://dominicaconsulategreece.com/dominica/public-holidays/)
|
|
30
|
+
* <http://archive.today/2025.04.29-124436/http://www.q95da.com/news/q95-news-received-on-december-29-2020-at-731pm-the-official-public-holiday-calendar-for-2021-approved-by-the-government-of-dominica>
|
|
31
|
+
* [2022-2024](https://web.archive.org/web/20250407175225/https://dominica.gov.dm/about-dominica/public-holidays)
|
|
32
32
|
|
|
33
33
|
While Labour Day is listed in the 1990 amendment as May 1st, this has, de facto, been
|
|
34
34
|
made 1st Monday of May since at least 2010.
|
|
@@ -109,10 +109,10 @@ class DominicaStaticHolidays:
|
|
|
109
109
|
"""Dominica special holidays.
|
|
110
110
|
|
|
111
111
|
References:
|
|
112
|
-
* <https://qppstudio-public-holidays-news.blogspot.com/2009/07/dominica-declares-july-28-public.html>
|
|
113
|
-
* <https://dominica.gov.dm/laws/2009/sro35-2009.pdf>
|
|
114
|
-
* <https://dominica.gov.dm/laws/2009/sro55-2009.pdf>
|
|
115
|
-
* <https://emonewsdm.com/thursday-september-19-2019-declared-public-holiday-in-dominica/>
|
|
112
|
+
* <https://web.archive.org/web/20231123061211/https://qppstudio-public-holidays-news.blogspot.com/2009/07/dominica-declares-july-28-public.html>
|
|
113
|
+
* <https://web.archive.org/web/20220723095040/https://www.dominica.gov.dm/laws/2009/sro35-2009.pdf>
|
|
114
|
+
* <https://web.archive.org/web/20220723095033/https://www.dominica.gov.dm/laws/2009/sro55-2009.pdf>
|
|
115
|
+
* <https://web.archive.org/web/20250427181820/https://emonewsdm.com/thursday-september-19-2019-declared-public-holiday-in-dominica/>
|
|
116
116
|
"""
|
|
117
117
|
|
|
118
118
|
# Special Public Holidays.
|
|
@@ -25,8 +25,8 @@ class DominicanRepublic(ObservedHolidayBase, ChristianHolidays, InternationalHol
|
|
|
25
25
|
"""Dominican Republic holidays.
|
|
26
26
|
|
|
27
27
|
References:
|
|
28
|
-
* <http://ojd.org.do/Normativas/LABORAL/Leyes/Ley%20No.%20%20139-97.pdf>
|
|
29
|
-
* <https://es.wikipedia.org/wiki/
|
|
28
|
+
* <https://web.archive.org/web/20220314033234/http://ojd.org.do/Normativas/LABORAL/Leyes/Ley%20No.%20%20139-97.pdf>
|
|
29
|
+
* <https://es.wikipedia.org/wiki/República_Dominicana#Días_festivos_nacionales>
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
32
|
country = "DO"
|
holidays/countries/ecuador.py
CHANGED
|
@@ -28,7 +28,7 @@ class Ecuador(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
28
28
|
|
|
29
29
|
References:
|
|
30
30
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Ecuador>
|
|
31
|
-
* [Código del Trabajo](https://biblioteca.defensoria.gob.ec/bitstream/37000/3364/1/
|
|
31
|
+
* [Código del Trabajo](https://web.archive.org/web/20250428092005/https://biblioteca.defensoria.gob.ec/bitstream/37000/3364/1/Código%20de%20Trabajo%20(04-11-2021).pdf)
|
|
32
32
|
"""
|
|
33
33
|
|
|
34
34
|
country = "EC"
|
holidays/countries/egypt.py
CHANGED
|
@@ -28,7 +28,7 @@ class Egypt(HolidayBase, ChristianHolidays, IslamicHolidays, InternationalHolida
|
|
|
28
28
|
supported_languages = ("ar", "en_US")
|
|
29
29
|
weekend = {FRI, SAT}
|
|
30
30
|
|
|
31
|
-
def __init__(self, islamic_show_estimated: bool = True,
|
|
31
|
+
def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
|
|
32
32
|
"""
|
|
33
33
|
Args:
|
|
34
34
|
islamic_show_estimated:
|
|
@@ -20,9 +20,9 @@ class ElSalvador(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
20
20
|
"""El Salvador holidays.
|
|
21
21
|
|
|
22
22
|
References:
|
|
23
|
-
* [Labor Code 1972](https://www.transparencia.gob.sv/institutions/gd-usulutan/documents/192280/download)
|
|
24
|
-
* <https://www.timeanddate.com/holidays/el-salvador
|
|
25
|
-
* <https://www.officeholidays.com/countries/el-salvador>
|
|
23
|
+
* [Labor Code 1972](https://web.archive.org/web/20240918054537/http://www.transparencia.gob.sv/institutions/gd-usulutan/documents/192280/download)
|
|
24
|
+
* <https://web.archive.org/web/20250308121509/https://www.timeanddate.com/holidays/el-salvador/>
|
|
25
|
+
* <https://web.archive.org/web/20250122083353/https://www.officeholidays.com/countries/el-salvador>
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
28
|
country = "SV"
|
|
@@ -0,0 +1,150 @@
|
|
|
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 JAN
|
|
16
|
+
from holidays.groups import ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
17
|
+
from holidays.observed_holiday_base import ObservedHolidayBase, SAT_SUN_TO_NEXT_MON
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class EquatorialGuinea(
|
|
21
|
+
ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
22
|
+
):
|
|
23
|
+
"""Equatorial Guinea holidays.
|
|
24
|
+
|
|
25
|
+
References:
|
|
26
|
+
* [Decree 9/2007](https://web.archive.org/web/20250518185011/https://boe.gob.gq/files/Decreto%20de%20Fijación%20de%20los%20Días%20Feriados%20en%20Guinea%20Ecuatorial.pdf)
|
|
27
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Equatorial_Guinea>
|
|
28
|
+
* <https://web.archive.org/web/20250503042253/https://www.timeanddate.com/holidays/guineaecuatorial/>
|
|
29
|
+
* <https://web.archive.org/web/20250503042610/https://gq.usembassy.gov/holiday-calendar/>
|
|
30
|
+
* [2015](https://web.archive.org/web/20250421105147/https://www.guineainfomarket.com/gobierno/2015/01/01/calendario-laboral-de-guinea-ecuatorial-2015/)
|
|
31
|
+
* [2016](https://web.archive.org/web/20250212174334/https://www.guineainfomarket.com/libros/2015/12/06/calendario-laboral-de-guinea-ecuatorial-2016/)
|
|
32
|
+
* [2018](https://web.archive.org/web/20241005004303/https://www.guineainfomarket.com/economia/2017/12/29/calendario-laboral-guinea-ecuatorial-2018/)
|
|
33
|
+
* [2019](https://web.archive.org/web/20220526022213/https://www.guineainfomarket.com/economia/2019/01/01/calendario-laboral-guinea-ecuatorial-2019/)
|
|
34
|
+
* [2020](https://web.archive.org/web/20250503044753/https://www.guineainfomarket.com/cultura/2020/01/01/calendario-laboral-de-guinea-ecuatorial-2020/)
|
|
35
|
+
* [2021](https://web.archive.org/web/20250503044727/https://www.guineainfomarket.com/cultura/2021/01/29/calendario-laboral-de-guinea-ecuatorial-2021/)
|
|
36
|
+
* [2022](https://web.archive.org/web/20250503044746/https://www.guineainfomarket.com/cultura/2021/01/29/calendario-laboral-de-guinea-ecuatorial-2021-2/)
|
|
37
|
+
* [2024](https://web.archive.org/web/20250504175804/https://www.guineainfomarket.com/business/2024/03/29/calendario-laboral-de-guinea-ecuatorial-2024/)
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
country = "GQ"
|
|
41
|
+
default_language = "es"
|
|
42
|
+
supported_languages = ("en_US", "es")
|
|
43
|
+
# %s observed.
|
|
44
|
+
observed_label = tr("%s (observado)")
|
|
45
|
+
# Decree 9/2007.
|
|
46
|
+
start_year = 2007
|
|
47
|
+
subdivisions = (
|
|
48
|
+
"AN", # Annobón (Annobon).
|
|
49
|
+
"BN", # Bioko Norte (North Bioko).
|
|
50
|
+
"BS", # Bioko Sur (South Bioko).
|
|
51
|
+
"CS", # Centro Sur (South Center).
|
|
52
|
+
"DJ", # Djibloho.
|
|
53
|
+
"KN", # Kié-Ntem (Kie-Ntem).
|
|
54
|
+
"LI", # Litoral (Coast).
|
|
55
|
+
"WN", # Wele-Nzas.
|
|
56
|
+
)
|
|
57
|
+
subdivisions_aliases = {
|
|
58
|
+
"Annobón": "AN",
|
|
59
|
+
"Annobon": "AN",
|
|
60
|
+
"Bioko Norte": "BN",
|
|
61
|
+
"North Bioko": "BN",
|
|
62
|
+
"Bioko Sur": "BS",
|
|
63
|
+
"South Bioko": "BS",
|
|
64
|
+
"Centro Sur": "CS",
|
|
65
|
+
"South Center": "CS",
|
|
66
|
+
"Djibloho": "DJ",
|
|
67
|
+
"Kié-Ntem": "KN",
|
|
68
|
+
"Kie-Ntem": "KN",
|
|
69
|
+
"Litoral": "LI",
|
|
70
|
+
"Coast": "LI",
|
|
71
|
+
"Wele-Nzas": "WN",
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
def __init__(self, *args, **kwargs):
|
|
75
|
+
ChristianHolidays.__init__(self)
|
|
76
|
+
InternationalHolidays.__init__(self)
|
|
77
|
+
StaticHolidays.__init__(self, cls=EquatorialGuineaStaticHolidays)
|
|
78
|
+
kwargs.setdefault("observed_rule", SAT_SUN_TO_NEXT_MON)
|
|
79
|
+
super().__init__(*args, **kwargs)
|
|
80
|
+
|
|
81
|
+
def _populate_public_holidays(self):
|
|
82
|
+
# New Year's Day.
|
|
83
|
+
self._add_observed(self._add_new_years_day(tr("Año Nuevo")))
|
|
84
|
+
|
|
85
|
+
# International Women's Day.
|
|
86
|
+
self._add_womens_day(tr("Día Internacional de la Mujer"))
|
|
87
|
+
|
|
88
|
+
# Maundy Thursday.
|
|
89
|
+
self._add_holy_thursday(tr("Jueves Santo"))
|
|
90
|
+
|
|
91
|
+
# Good Friday.
|
|
92
|
+
self._add_good_friday(tr("Viernes Santo"))
|
|
93
|
+
|
|
94
|
+
# International Labor Day.
|
|
95
|
+
self._add_observed(self._add_labor_day(tr("Día Internacional del Trabajo")))
|
|
96
|
+
|
|
97
|
+
# African Liberation Day.
|
|
98
|
+
self._add_africa_day(tr("Día de la liberación Africana"))
|
|
99
|
+
|
|
100
|
+
self._add_observed(
|
|
101
|
+
# President's Day.
|
|
102
|
+
self._add_holiday_jun_5(tr("Natalicio de Su Excelencia el Presidente de la República"))
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
# Corpus Christi.
|
|
106
|
+
self._add_corpus_christi_day(tr("Corpus Christi"))
|
|
107
|
+
|
|
108
|
+
# Armed Forces Day.
|
|
109
|
+
self._add_observed(self._add_holiday_aug_3(tr("Día de las Fuerzas Armadas")))
|
|
110
|
+
|
|
111
|
+
# Constitution Day.
|
|
112
|
+
self._add_observed(self._add_holiday_aug_15(tr("Día de la Constitución")))
|
|
113
|
+
|
|
114
|
+
# Independence Day.
|
|
115
|
+
self._add_observed(self._add_holiday_oct_12(tr("Día de la Independencia Nacional")))
|
|
116
|
+
|
|
117
|
+
self._add_observed(
|
|
118
|
+
self._add_immaculate_conception_day(
|
|
119
|
+
# Immaculate Conception.
|
|
120
|
+
tr("Festividad de la Inmaculada Concepción de María")
|
|
121
|
+
)
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
# Christmas Day.
|
|
125
|
+
self._add_observed(self._add_christmas_day(tr("Día de Navidad")))
|
|
126
|
+
|
|
127
|
+
def _populate_subdiv_an_public_holidays(self):
|
|
128
|
+
# Patron Saint Festival of Annobón.
|
|
129
|
+
self._add_holiday_jun_13(tr("Fiesta Patronal de Annobón"))
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
class GQ(EquatorialGuinea):
|
|
133
|
+
pass
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
class GNQ(EquatorialGuinea):
|
|
137
|
+
pass
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
class EquatorialGuineaStaticHolidays:
|
|
141
|
+
"""Equatorial Guinea special holidays.
|
|
142
|
+
|
|
143
|
+
References:
|
|
144
|
+
* [AFCON Victory Holiday](https://web.archive.org/web/20240124021813/https://www.monitor.co.ug/uganda/sports/soccer/equatorial-guinea-president-awards-team-1-million-for-afcon-victory-4500644)
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
special_public_holidays = {
|
|
148
|
+
# AFCON Victory Against Ivory Coast.
|
|
149
|
+
2024: (JAN, 23, tr("Victoria de la AFCON contra Costa de Marfil")),
|
|
150
|
+
}
|
holidays/countries/eswatini.py
CHANGED
|
@@ -21,8 +21,8 @@ class Eswatini(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, St
|
|
|
21
21
|
"""Eswatini holidays.
|
|
22
22
|
|
|
23
23
|
References:
|
|
24
|
-
* <https://swazilii.org/sz/legislation/act/1938/71>
|
|
25
|
-
* <https://www.officeholidays.com/countries/swaziland>
|
|
24
|
+
* <https://web.archive.org/web/20171109031840/http://www.swazilii.org:80/sz/legislation/act/1938/71>
|
|
25
|
+
* <https://web.archive.org/web/20250413193851/https://www.officeholidays.com/countries/swaziland>
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
28
|
country = "SZ"
|
|
@@ -87,7 +87,7 @@ class SZW(Eswatini):
|
|
|
87
87
|
|
|
88
88
|
class EswatiniStaticHolidays:
|
|
89
89
|
special_public_holidays = {
|
|
90
|
-
# https://mg.co.za/article/1999-12-09-swaziland-declares-bank-holidays/
|
|
90
|
+
# https://web.archive.org/web/20250413193906/https://mg.co.za/article/1999-12-09-swaziland-declares-bank-holidays/
|
|
91
91
|
1999: (DEC, 31, "Y2K changeover"),
|
|
92
92
|
2000: (JAN, 3, "Y2K changeover"),
|
|
93
93
|
}
|
holidays/countries/ethiopia.py
CHANGED
|
@@ -25,12 +25,12 @@ class Ethiopia(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHol
|
|
|
25
25
|
"""Ethiopia holidays.
|
|
26
26
|
|
|
27
27
|
References:
|
|
28
|
-
* [Proclamation No. 29/1996](https://
|
|
29
|
-
* [Proclamation No. 1334/2024](https://lawethiopiacomment.wordpress.com/wp-content/uploads/2024/08/public-holiday-stamped.pdf)
|
|
30
|
-
* <https://www.edarabia.com/ethiopia/public-holidays/>
|
|
28
|
+
* [Proclamation No. 29/1996](https://web.archive.org/web/20240918183943/https://lawethiopia.com/images/federal_proclamation/proclamations_by_number/29.pdf)
|
|
29
|
+
* [Proclamation No. 1334/2024](https://web.archive.org/web/20240823080839/https://lawethiopiacomment.wordpress.com/wp-content/uploads/2024/08/public-holiday-stamped.pdf)
|
|
30
|
+
* <https://web.archive.org/web/20250427173714/https://www.edarabia.com/ethiopia/public-holidays/>
|
|
31
31
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Ethiopia>
|
|
32
|
-
* <https://en.wikipedia.org/wiki/Nations,_Nationalities_and_Peoples
|
|
33
|
-
* <https://www.timeanddate.com/holidays/ethiopia/>
|
|
32
|
+
* <https://en.wikipedia.org/wiki/Nations,_Nationalities_and_Peoples'_Day>
|
|
33
|
+
* <https://web.archive.org/web/20250408213218/https://www.timeanddate.com/holidays/ethiopia/>
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
country = "ET"
|
|
@@ -58,7 +58,7 @@ class Ethiopia(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHol
|
|
|
58
58
|
|
|
59
59
|
return isleap(self._year + 1)
|
|
60
60
|
|
|
61
|
-
def __init__(self, islamic_show_estimated: bool = True,
|
|
61
|
+
def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
|
|
62
62
|
"""
|
|
63
63
|
Args:
|
|
64
64
|
islamic_show_estimated:
|