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/namibia.py
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
11
11
|
# License: MIT (see LICENSE file)
|
|
12
12
|
|
|
13
|
-
from
|
|
13
|
+
from gettext import gettext as tr
|
|
14
|
+
|
|
15
|
+
from holidays.calendars.gregorian import JAN, FEB, MAR, SEP, OCT, NOV, DEC
|
|
14
16
|
from holidays.groups import ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
15
17
|
from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
16
18
|
|
|
@@ -19,71 +21,77 @@ class Namibia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Sta
|
|
|
19
21
|
"""Namibia holidays.
|
|
20
22
|
|
|
21
23
|
References:
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
24
|
+
* [Public Holidays Act, 1990](https://web.archive.org/web/20250322163344/https://namiblii.org/akn/na/act/1990/26/eng@2004-12-17)
|
|
25
|
+
* [Public Holidays Amendment Act, 2004](https://web.archive.org/web/20221015121213/https://namiblii.org/akn/na/act/2004/16/eng@2004-12-17)
|
|
26
|
+
* [Genocide Remembrance Day](https://web.archive.org/web/20250126055207/https://namiblii.org/akn/na/officialGazette/government-gazette/2024-05-28/8373/eng@2024-05-28)
|
|
25
27
|
|
|
26
|
-
As of 1991/2/1, whenever a public holiday falls on a Sunday, it rolls over to the
|
|
27
|
-
unless that
|
|
28
|
+
As of 1991/2/1, whenever a public holiday falls on a Sunday, it rolls over to the Monday,
|
|
29
|
+
unless that Monday is already a public holiday.
|
|
28
30
|
Since the interval from 1991/1/1 to 1991/2/1 includes only New Year's Day, and it's a Tuesday,
|
|
29
31
|
we can assume that the beginning is 1991.
|
|
30
32
|
"""
|
|
31
33
|
|
|
32
34
|
country = "NA"
|
|
35
|
+
default_language = "en_NA"
|
|
33
36
|
# %s (observed).
|
|
34
|
-
observed_label = "%s (observed)"
|
|
35
|
-
start_year =
|
|
37
|
+
observed_label = tr("%s (observed)")
|
|
38
|
+
start_year = 1991
|
|
39
|
+
supported_languages = ("en_NA", "en_US", "uk")
|
|
36
40
|
|
|
37
41
|
def __init__(self, *args, **kwargs):
|
|
38
42
|
ChristianHolidays.__init__(self)
|
|
39
43
|
InternationalHolidays.__init__(self)
|
|
40
44
|
StaticHolidays.__init__(self, NamibiaStaticHolidays)
|
|
41
45
|
kwargs.setdefault("observed_rule", SUN_TO_NEXT_MON)
|
|
42
|
-
kwargs.setdefault("observed_since", 1991)
|
|
43
46
|
super().__init__(*args, **kwargs)
|
|
44
47
|
|
|
45
48
|
def _populate_public_holidays(self):
|
|
46
49
|
# New Year's Day.
|
|
47
|
-
self._add_observed(self._add_new_years_day("New Year's Day"))
|
|
50
|
+
self._add_observed(self._add_new_years_day(tr("New Year's Day")))
|
|
48
51
|
|
|
49
52
|
# Independence Day.
|
|
50
|
-
self._add_observed(self._add_holiday_mar_21("Independence Day"))
|
|
53
|
+
self._add_observed(self._add_holiday_mar_21(tr("Independence Day")))
|
|
51
54
|
|
|
52
55
|
# Good Friday.
|
|
53
|
-
self._add_good_friday("Good Friday")
|
|
56
|
+
self._add_good_friday(tr("Good Friday"))
|
|
54
57
|
|
|
55
58
|
# Easter Monday.
|
|
56
|
-
self._add_easter_monday("Easter Monday")
|
|
59
|
+
self._add_easter_monday(tr("Easter Monday"))
|
|
57
60
|
|
|
58
61
|
# Workers' Day.
|
|
59
|
-
self._add_observed(self._add_labor_day("Workers' Day"))
|
|
62
|
+
self._add_observed(self._add_labor_day(tr("Workers' Day")))
|
|
60
63
|
|
|
61
64
|
# Cassinga Day.
|
|
62
|
-
self._add_observed(self._add_holiday_may_4("Cassinga Day"))
|
|
65
|
+
self._add_observed(self._add_holiday_may_4(tr("Cassinga Day")))
|
|
63
66
|
|
|
64
67
|
# Africa Day.
|
|
65
|
-
self._add_observed(self._add_africa_day("Africa Day"))
|
|
68
|
+
self._add_observed(self._add_africa_day(tr("Africa Day")))
|
|
69
|
+
|
|
70
|
+
if self._year >= 2025:
|
|
71
|
+
# Genocide Remembrance Day.
|
|
72
|
+
self._add_holiday_may_28(tr("Genocide Remembrance Day"))
|
|
66
73
|
|
|
67
74
|
# Ascension Day.
|
|
68
|
-
self._add_ascension_thursday("Ascension Day")
|
|
75
|
+
self._add_ascension_thursday(tr("Ascension Day"))
|
|
69
76
|
|
|
70
77
|
# Heroes' Day.
|
|
71
|
-
self._add_observed(self._add_holiday_aug_26("Heroes' Day"))
|
|
78
|
+
self._add_observed(self._add_holiday_aug_26(tr("Heroes' Day")))
|
|
72
79
|
|
|
73
|
-
# http://www.lac.org.na/laws/2004/3348.pdf
|
|
74
80
|
self._add_observed(
|
|
75
81
|
self._add_holiday_sep_10(
|
|
76
|
-
|
|
82
|
+
# Day of the Namibian Women and International Human Rights Day.
|
|
83
|
+
tr("Day of the Namibian Women and International Human Rights Day")
|
|
77
84
|
if self._year >= 2005
|
|
78
|
-
|
|
85
|
+
# International Human Rights Day.
|
|
86
|
+
else tr("International Human Rights Day")
|
|
79
87
|
)
|
|
80
88
|
)
|
|
81
89
|
|
|
82
90
|
# Christmas Day.
|
|
83
|
-
self._add_christmas_day("Christmas Day")
|
|
91
|
+
self._add_christmas_day(tr("Christmas Day"))
|
|
84
92
|
|
|
85
93
|
# Family Day.
|
|
86
|
-
self._add_observed(self._add_christmas_day_two("Family Day"))
|
|
94
|
+
self._add_observed(self._add_christmas_day_two(tr("Family Day")))
|
|
87
95
|
|
|
88
96
|
|
|
89
97
|
class NA(Namibia):
|
|
@@ -95,8 +103,59 @@ class NAM(Namibia):
|
|
|
95
103
|
|
|
96
104
|
|
|
97
105
|
class NamibiaStaticHolidays:
|
|
106
|
+
"""Namibia special holidays.
|
|
107
|
+
|
|
108
|
+
References:
|
|
109
|
+
* [March 1, 1994](https://web.archive.org/web/20241210145818/https://namiblii.org/akn/na/officialGazette/government-gazette/1994-02-15/797/eng@1994-02-15)
|
|
110
|
+
* [December 7, 1994](https://web.archive.org/web/20250613113650/https://namiblii.org/akn/na/officialGazette/government-gazette/1994-11-30/987/eng@1994-11-30)
|
|
111
|
+
* [October 24, 1995](https://web.archive.org/web/20250613184422/https://namiblii.org/akn/na/officialGazette/government-gazette/1995-10-20/1178/eng@1995-10-20)
|
|
112
|
+
* [September 26, 1997](https://web.archive.org/web/20250613172016/https://namiblii.org/akn/na/officialGazette/government-gazette/1997-09-25/1690/eng@1997-09-25)
|
|
113
|
+
* [November 30, 1998](https://web.archive.org/web/20250613184549/https://namiblii.org/akn/na/officialGazette/government-gazette/1998-11-06/1988/eng@1998-11-06)
|
|
114
|
+
* [November 30, 1999](https://web.archive.org/web/20241012184236/https://namiblii.org/akn/na/officialGazette/government-gazette/1999-10-08/2202/eng@1999-10-08)
|
|
115
|
+
* [Y2K changeover](https://web.archive.org/web/20250613145912/https://namiblii.org/akn/na/officialGazette/government-gazette/1999-11-22/2234/eng@1999-11-22)
|
|
116
|
+
* [November 28, 2014](https://web.archive.org/web/20250613184051/https://namiblii.org/akn/na/officialGazette/government-gazette/2014-11-07/5609/eng@2014-11-07)
|
|
117
|
+
* [November 27, 2015](https://web.archive.org/web/20250613184258/https://namiblii.org/akn/na/officialGazette/government-gazette/2015-11-26/5885/eng@2015-11-26)
|
|
118
|
+
* [November 27, 2019](https://web.archive.org/web/20241112233422/https://namiblii.org/akn/na/officialGazette/government-gazette/2019-09-30/7008/eng@2019-09-30)
|
|
119
|
+
* [November 25, 2020](https://web.archive.org/web/20250613112403/https://namiblii.org/akn/na/officialGazette/government-gazette/2020-11-19/7394/eng@2020-11-19)
|
|
120
|
+
* [February 25, 2024](https://web.archive.org/web/20241203060851/https://namiblii.org/akn/na/officialGazette/government-gazette/2024-02-20/8312/eng@2024-02-20)
|
|
121
|
+
* [November 27, 2024](https://web.archive.org/web/20250514020246/https://namiblii.org/akn/na/officialGazette/government-gazette/2024-09-26/8454/eng@2024-09-26)
|
|
122
|
+
* [March 1, 2025](https://web.archive.org/web/20250613172517/https://namiblii.org/akn/na/officialGazette/government-gazette/2025-02-14/8577/eng@2025-02-14)
|
|
123
|
+
"""
|
|
124
|
+
|
|
125
|
+
# Y2K changeover.
|
|
126
|
+
y2k_changeover = tr("Y2K changeover")
|
|
127
|
+
|
|
128
|
+
# General Election Day.
|
|
129
|
+
general_election_day = tr("General Election Day")
|
|
130
|
+
|
|
131
|
+
# Regional Election Day.
|
|
132
|
+
regional_election_day = tr("Regional Election Day")
|
|
133
|
+
|
|
98
134
|
special_public_holidays = {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
135
|
+
1994: (
|
|
136
|
+
# Walvis Bay Reintegration Day.
|
|
137
|
+
(MAR, 1, tr("Walvis Bay Reintegration Day")),
|
|
138
|
+
(DEC, 7, general_election_day),
|
|
139
|
+
),
|
|
140
|
+
# Public Holiday.
|
|
141
|
+
1995: (OCT, 24, tr("Public Holiday")),
|
|
142
|
+
# Day of Mourning for Honourable Moses Garoeb.
|
|
143
|
+
1997: (SEP, 26, tr("Day of Mourning for Honourable Moses Garoeb")),
|
|
144
|
+
1998: (NOV, 30, regional_election_day),
|
|
145
|
+
1999: (
|
|
146
|
+
(NOV, 30, general_election_day),
|
|
147
|
+
(DEC, 31, y2k_changeover),
|
|
148
|
+
),
|
|
149
|
+
2000: (JAN, 3, y2k_changeover),
|
|
150
|
+
2014: (NOV, 28, general_election_day),
|
|
151
|
+
2015: (NOV, 27, regional_election_day),
|
|
152
|
+
2019: (NOV, 27, general_election_day),
|
|
153
|
+
2020: (NOV, 25, regional_election_day),
|
|
154
|
+
2024: (
|
|
155
|
+
# Burial ceremony of Dr. Hage Gottfried Geingob.
|
|
156
|
+
(FEB, 25, tr("Burial ceremony of Dr. Hage Gottfried Geingob")),
|
|
157
|
+
(NOV, 27, general_election_day),
|
|
158
|
+
),
|
|
159
|
+
# Burial ceremony of Dr. Sam Shafiishuna Nujoma.
|
|
160
|
+
2025: (MAR, 1, tr("Burial ceremony of Dr. Sam Shafiishuna Nujoma")),
|
|
102
161
|
}
|
|
@@ -0,0 +1,129 @@
|
|
|
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_SUN_TO_NEXT_MON,
|
|
19
|
+
SAT_SUN_TO_NEXT_MON_TUE,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class Nauru(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
24
|
+
"""Nauru holidays.
|
|
25
|
+
|
|
26
|
+
References:
|
|
27
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Nauru>
|
|
28
|
+
* [Public Service Act 2016](https://web.archive.org/web/20250613095858/https://ronlaw.gov.nr/assets/docs/acts/2016/Public%20Service%20Act%202016_serv4.pdf)
|
|
29
|
+
* [Nauru's Online Legal Database](https://web.archive.org/web/20250501021029/https://ronlaw.gov.nr/)
|
|
30
|
+
* <https://web.archive.org/web/20250408012244/https://www.timeanddate.com/holidays/nauru/>
|
|
31
|
+
|
|
32
|
+
Gazettes:
|
|
33
|
+
* [Public Holidays 2019](https://web.archive.org/web/20250613095031/https://ronlaw.gov.nr/assets/docs/gazettes/2018/11/Gazette%20No.%20175%20(28%20November%202018).pdf)
|
|
34
|
+
* [Public Holidays 2021](https://web.archive.org/web/20250613102242/https://ronlaw.gov.nr/assets/docs/gazettes/2020/12/Gazette%20No.%20227%20(21%20December%202020).pdf)
|
|
35
|
+
* [Public Holidays 2022](https://web.archive.org/web/20250613102128/https://ronlaw.gov.nr/assets/docs/gazettes/2022/01/Gazette%20No.%207%20(6%20January%202022).pdf)
|
|
36
|
+
* [Public Holidays 2023](https://web.archive.org/web/20250613101855/https://ronlaw.gov.nr/assets/docs/gazettes/2022/12/Gazette%20No.%20330%20(30%20December%202022).pdf)
|
|
37
|
+
* [Public Holidays 2024](https://web.archive.org/web/20250613094703/https://ronlaw.gov.nr/assets/docs/gazettes/2024/01/Nauru%20Government%20Gazette,%20No.%2014%20(15%20January%202024).pdf)
|
|
38
|
+
* [RONPHOS Handover Day 2018](https://web.archive.org/web/20250613095226/https://ronlaw.gov.nr/assets/docs/gazettes/2018/06/Gazette%20No.%20102%20(29%20June%202018).pdf)
|
|
39
|
+
* [Ibumin Earoeni Day 2019](https://web.archive.org/web/20250613095413/https://ronlaw.gov.nr/assets/docs/gazettes/2019/08/Gazette%20No.%20139%20(12%20August%202019).pdf)
|
|
40
|
+
* [Sir Hammer DeRoburt Day 2020](https://web.archive.org/web/20250614102647/https://ronlaw.gov.nr/assets/docs/gazettes/2020/09/Gazette%20No.%20171%20(10%20September%202020).pdf)
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
country = "NR"
|
|
44
|
+
default_language = "en_NR"
|
|
45
|
+
# %s (observed).
|
|
46
|
+
observed_label = tr("%s (observed)")
|
|
47
|
+
supported_languages = ("en_NR", "en_US")
|
|
48
|
+
# Nauru gained independence on January 31, 1968.
|
|
49
|
+
start_year = 1969
|
|
50
|
+
|
|
51
|
+
def __init__(self, *args, **kwargs):
|
|
52
|
+
ChristianHolidays.__init__(self)
|
|
53
|
+
InternationalHolidays.__init__(self)
|
|
54
|
+
kwargs.setdefault("observed_rule", SAT_SUN_TO_NEXT_MON)
|
|
55
|
+
super().__init__(*args, **kwargs)
|
|
56
|
+
|
|
57
|
+
def _populate_public_holidays(self):
|
|
58
|
+
# New Year's Day.
|
|
59
|
+
self._add_observed(self._add_new_years_day(tr("New Year's Day")))
|
|
60
|
+
|
|
61
|
+
self._add_observed(
|
|
62
|
+
# Independence Day.
|
|
63
|
+
self._add_holiday_jan_31(tr("Independence Day")),
|
|
64
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
self._add_observed(
|
|
68
|
+
# Day following Independence Day.
|
|
69
|
+
self._add_holiday_feb_1(tr("Day following Independence Day")),
|
|
70
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
if self._year >= 2019:
|
|
74
|
+
# International Women's Day.
|
|
75
|
+
self._add_observed(self._add_womens_day(tr("International Women's Day")))
|
|
76
|
+
|
|
77
|
+
# Good Friday.
|
|
78
|
+
self._add_good_friday(tr("Good Friday"))
|
|
79
|
+
|
|
80
|
+
# Easter Monday.
|
|
81
|
+
self._add_easter_monday(tr("Easter Monday"))
|
|
82
|
+
|
|
83
|
+
# Easter Tuesday.
|
|
84
|
+
self._add_easter_tuesday(tr("Easter Tuesday"))
|
|
85
|
+
|
|
86
|
+
# Constitution Day.
|
|
87
|
+
self._add_observed(self._add_holiday_may_17(tr("Constitution Day")))
|
|
88
|
+
|
|
89
|
+
if self._year >= 2018:
|
|
90
|
+
# RONPHOS Handover.
|
|
91
|
+
self._add_observed(self._add_holiday_jul_1(tr("RONPHOS Handover")))
|
|
92
|
+
|
|
93
|
+
if self._year >= 2019:
|
|
94
|
+
# Ibumin Earoeni Day.
|
|
95
|
+
self._add_observed(self._add_holiday_aug_19(tr("Ibumin Earoeni Day")))
|
|
96
|
+
|
|
97
|
+
if self._year >= 2001:
|
|
98
|
+
self._add_observed(
|
|
99
|
+
self._add_holiday_sep_25(
|
|
100
|
+
# Sir Hammer DeRoburt Day.
|
|
101
|
+
tr("Sir Hammer DeRoburt Day")
|
|
102
|
+
if self._year >= 2020
|
|
103
|
+
# National Youth Day.
|
|
104
|
+
else tr("National Youth Day")
|
|
105
|
+
)
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
# Angam Day.
|
|
109
|
+
self._add_observed(self._add_holiday_oct_26(tr("Angam Day")))
|
|
110
|
+
|
|
111
|
+
self._add_observed(
|
|
112
|
+
# Christmas Day.
|
|
113
|
+
self._add_christmas_day(tr("Christmas Day")),
|
|
114
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
self._add_observed(
|
|
118
|
+
# Day following Christmas.
|
|
119
|
+
self._add_christmas_day_two(tr("Day following Christmas")),
|
|
120
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
class NR(Nauru):
|
|
125
|
+
pass
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
class NRU(Nauru):
|
|
129
|
+
pass
|
holidays/countries/nepal.py
CHANGED
|
@@ -35,15 +35,15 @@ class Nepal(
|
|
|
35
35
|
|
|
36
36
|
References:
|
|
37
37
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Nepal>
|
|
38
|
-
* <https://narayanilawfirm.org.np/list-of-public-holidays-in-nepal-2079/>
|
|
39
|
-
* <https://www.timeanddate.com/holidays/nepal/>
|
|
40
|
-
* <https://kathmandupost.com/national/2018/03/29/government-trims-public-holidays-by-22-days>
|
|
41
|
-
* <https://kathmandupost.com/national/2021/02/13/two-years-after-shortening-public-holiday-list-government-starts-adding-to-it-again>
|
|
42
|
-
* <https://english.hamropatro.com/nepali-public-holidays>
|
|
43
|
-
* <https://english.hamropatro.com/calendar>
|
|
44
|
-
* <https://www.ashesh.com.np/nepali-calendar/>
|
|
45
|
-
* <https://www.bolpatra.gov.np/egp/openDateConverter>
|
|
46
|
-
* <https://www.moha.gov.np/en/page/holidays>
|
|
38
|
+
* <https://web.archive.org/web/20250422191700/https://narayanilawfirm.org.np/list-of-public-holidays-in-nepal-2079/>
|
|
39
|
+
* <https://web.archive.org/web/20250131082346/https://www.timeanddate.com/holidays/nepal/>
|
|
40
|
+
* <https://web.archive.org/web/20240911172745/https://kathmandupost.com/national/2018/03/29/government-trims-public-holidays-by-22-days>
|
|
41
|
+
* <https://web.archive.org/web/20250419211438/https://kathmandupost.com/national/2021/02/13/two-years-after-shortening-public-holiday-list-government-starts-adding-to-it-again>
|
|
42
|
+
* <https://web.archive.org/web/20250316094224/https://english.hamropatro.com/nepali-public-holidays>
|
|
43
|
+
* <https://web.archive.org/web/20250527164012/https://english.hamropatro.com/calendar>
|
|
44
|
+
* <https://web.archive.org/web/20250322000610/https://www.ashesh.com.np/nepali-calendar/>
|
|
45
|
+
* <https://web.archive.org/web/20250117021312/https://www.bolpatra.gov.np/egp/openDateConverter>
|
|
46
|
+
* <https://web.archive.org/web/20241013164133/https://www.moha.gov.np/en/page/holidays>
|
|
47
47
|
"""
|
|
48
48
|
|
|
49
49
|
country = "NP"
|
|
@@ -52,7 +52,7 @@ class Nepal(
|
|
|
52
52
|
start_year = 2010
|
|
53
53
|
supported_categories = (PUBLIC, WORKDAY)
|
|
54
54
|
|
|
55
|
-
def __init__(self, islamic_show_estimated: bool = True,
|
|
55
|
+
def __init__(self, *args, islamic_show_estimated: bool = True, **kwargs):
|
|
56
56
|
"""
|
|
57
57
|
Args:
|
|
58
58
|
islamic_show_estimated:
|
|
@@ -410,12 +410,12 @@ class NepalStaticHolidays:
|
|
|
410
410
|
"""Nepal special holidays.
|
|
411
411
|
|
|
412
412
|
References:
|
|
413
|
-
* [Death of Krishna Prasad Bhattarai](https://myrepublica.nagariknetwork.com/news/27618/)
|
|
414
|
-
* [Death of Sushil Koirala](https://kathmandupost.com/miscellaneous/2016/02/09/cabinet-decision-koirala-to-be-honoured-with-state-funeral)
|
|
415
|
-
* [Crash of Yeti Airlines Flight 691](https://edition.cnn.com/2023/01/15/asia/nepal-yeti-airlines-crash-intl-hnk/index.html)
|
|
416
|
-
* [People's War Day Instituted](https://kathmandupost.com/national/2023/02/12/government-announces-public-holiday-on-monday-to-mark-people-s-war-day)
|
|
417
|
-
* [People's War Day Annulled](https://kathmandupost.com/national/2023/12/29/supreme-court-annuls-public-holiday-on-people-s-war-day)
|
|
418
|
-
* [Death of Subas Chandra Nembang](https://en.nepalkhabar.com/news/detail/6023/)
|
|
413
|
+
* [Death of Krishna Prasad Bhattarai](https://web.archive.org/web/20250527164153/https://myrepublica.nagariknetwork.com/news/27618/)
|
|
414
|
+
* [Death of Sushil Koirala](https://web.archive.org/web/20250527164210/https://kathmandupost.com/miscellaneous/2016/02/09/cabinet-decision-koirala-to-be-honoured-with-state-funeral)
|
|
415
|
+
* [Crash of Yeti Airlines Flight 691](https://web.archive.org/web/20250123204057/https://edition.cnn.com/2023/01/15/asia/nepal-yeti-airlines-crash-intl-hnk/index.html)
|
|
416
|
+
* [People's War Day Instituted](https://web.archive.org/web/20241211215602/https://kathmandupost.com/national/2023/02/12/government-announces-public-holiday-on-monday-to-mark-people-s-war-day)
|
|
417
|
+
* [People's War Day Annulled](https://web.archive.org/web/20240111230228/https://kathmandupost.com/national/2023/12/29/supreme-court-annuls-public-holiday-on-people-s-war-day)
|
|
418
|
+
* [Death of Subas Chandra Nembang](https://web.archive.org/web/20241214193305/https://en.nepalkhabar.com/news/detail/6023/)
|
|
419
419
|
"""
|
|
420
420
|
|
|
421
421
|
# Day of National Mourning.
|
|
@@ -25,7 +25,7 @@ class Netherlands(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
25
25
|
References:
|
|
26
26
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_the_Netherlands>
|
|
27
27
|
* <https://nl.wikipedia.org/wiki/Feestdagen_in_Nederland>
|
|
28
|
-
* <
|
|
28
|
+
* <https://web.archive.org/web/20250427131819/https://www.iamsterdam.com/en/plan-your-trip/practical-info/public-holidays>
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
31
|
country = "NL"
|
|
@@ -50,7 +50,7 @@ class NewZealand(ObservedHolidayBase, ChristianHolidays, InternationalHolidays,
|
|
|
50
50
|
"WKO", # Waikato (Waikato).
|
|
51
51
|
"WTC", # West Coast (Te Tai o Poutini).
|
|
52
52
|
# Subregions:
|
|
53
|
-
# https://www.govt.nz/browse/work/public-holidays-and-work/public-holidays-and-anniversary-dates/
|
|
53
|
+
# https://web.archive.org/web/20250415230521/https://www.govt.nz/browse/work/public-holidays-and-work/public-holidays-and-anniversary-dates/
|
|
54
54
|
"South Canterbury",
|
|
55
55
|
)
|
|
56
56
|
subdivisions_aliases = {
|
|
@@ -175,7 +175,7 @@ class NewZealand(ObservedHolidayBase, ChristianHolidays, InternationalHolidays,
|
|
|
175
175
|
elif self._year >= 1912:
|
|
176
176
|
self._add_holiday_jun_3(name) # George V
|
|
177
177
|
else:
|
|
178
|
-
#
|
|
178
|
+
# https://web.archive.org/web/20250427125629/https://paperspast.natlib.govt.nz/cgi-bin/paperspast?a=d&d=NZH19091110.2.67
|
|
179
179
|
self._add_holiday_nov_9(name) # Edward VII
|
|
180
180
|
|
|
181
181
|
# Matariki
|
holidays/countries/nicaragua.py
CHANGED
|
@@ -21,8 +21,8 @@ class Nicaragua(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
21
21
|
|
|
22
22
|
References:
|
|
23
23
|
* <https://en.wikipedia.org/wiki/Public_holidays_in_Nicaragua>
|
|
24
|
-
* <http://legislacion.asamblea.gob.ni/Normaweb.nsf/($All)/FA251B3C54F5BAEF062571C40055736C?OpenDocument>
|
|
25
|
-
* <http://legislacion.asamblea.gob.ni/normaweb.nsf/($All)/3B28EC51ABE2787706258848005ADBB0?OpenDocument>
|
|
24
|
+
* <https://web.archive.org/web/20241102092432/http://legislacion.asamblea.gob.ni/Normaweb.nsf/($All)/FA251B3C54F5BAEF062571C40055736C?OpenDocument>
|
|
25
|
+
* <https://web.archive.org/web/20250427125556/http://legislacion.asamblea.gob.ni/normaweb.nsf/($All)/3B28EC51ABE2787706258848005ADBB0?OpenDocument>
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
28
|
country = "NI"
|