holidays 0.69__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 +1 -1
- holidays/calendars/balinese_saka.py +3 -3
- 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 +1 -1
- 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 +2 -1
- holidays/countries/__init__.py +6 -1
- holidays/countries/afghanistan.py +11 -7
- holidays/countries/albania.py +10 -7
- holidays/countries/algeria.py +10 -10
- holidays/countries/american_samoa.py +6 -4
- 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 +24 -19
- holidays/countries/bahamas.py +13 -11
- holidays/countries/bahrain.py +8 -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 +15 -11
- holidays/countries/botswana.py +8 -6
- holidays/countries/brazil.py +8 -7
- holidays/countries/brunei.py +50 -62
- holidays/countries/bulgaria.py +9 -10
- holidays/countries/burkina_faso.py +8 -5
- holidays/countries/burundi.py +13 -12
- holidays/countries/cambodia.py +15 -24
- holidays/countries/cameroon.py +10 -7
- holidays/countries/canada.py +13 -12
- holidays/countries/chad.py +9 -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 +7 -3
- holidays/countries/dominica.py +18 -16
- holidays/countries/dominican_republic.py +6 -4
- holidays/countries/ecuador.py +5 -4
- holidays/countries/egypt.py +6 -11
- holidays/countries/el_salvador.py +6 -5
- holidays/countries/estonia.py +3 -1
- holidays/countries/eswatini.py +6 -4
- holidays/countries/ethiopia.py +20 -11
- holidays/countries/fiji.py +183 -0
- holidays/countries/finland.py +11 -10
- holidays/countries/france.py +6 -9
- holidays/countries/gabon.py +11 -8
- holidays/countries/georgia.py +7 -7
- holidays/countries/germany.py +11 -11
- holidays/countries/ghana.py +10 -6
- holidays/countries/greece.py +4 -5
- holidays/countries/greenland.py +5 -6
- holidays/countries/guam.py +6 -4
- 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 +11 -8
- holidays/countries/hungary.py +26 -23
- holidays/countries/iceland.py +5 -4
- holidays/countries/india.py +14 -10
- holidays/countries/indonesia.py +57 -53
- holidays/countries/iran.py +12 -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 +9 -6
- holidays/countries/kazakhstan.py +66 -51
- holidays/countries/kenya.py +22 -18
- holidays/countries/kuwait.py +10 -7
- holidays/countries/kyrgyzstan.py +7 -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 +32 -26
- holidays/countries/madagascar.py +5 -4
- holidays/countries/malawi.py +6 -4
- holidays/countries/malaysia.py +24 -18
- holidays/countries/maldives.py +10 -7
- holidays/countries/malta.py +10 -19
- holidays/countries/marshall_islands.py +6 -4
- holidays/countries/mauritania.py +9 -6
- holidays/countries/mexico.py +8 -7
- holidays/countries/moldova.py +6 -4
- holidays/countries/monaco.py +6 -4
- holidays/countries/montenegro.py +10 -7
- holidays/countries/morocco.py +9 -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 +9 -5
- holidays/countries/north_macedonia.py +9 -5
- holidays/countries/northern_mariana_islands.py +6 -4
- holidays/countries/norway.py +15 -15
- holidays/countries/pakistan.py +41 -17
- 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 +25 -21
- holidays/countries/poland.py +6 -5
- holidays/countries/portugal.py +13 -15
- holidays/countries/puerto_rico.py +6 -4
- 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 +11 -15
- holidays/countries/serbia.py +3 -4
- holidays/countries/seychelles.py +22 -26
- holidays/countries/singapore.py +29 -39
- 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 +25 -24
- holidays/countries/sri_lanka.py +46 -42
- holidays/countries/sweden.py +20 -19
- holidays/countries/switzerland.py +6 -5
- holidays/countries/taiwan.py +50 -48
- holidays/countries/tanzania.py +28 -27
- holidays/countries/thailand.py +134 -142
- holidays/countries/timor_leste.py +20 -18
- holidays/countries/tonga.py +46 -42
- holidays/countries/tunisia.py +5 -3
- holidays/countries/turkey.py +11 -9
- holidays/countries/tuvalu.py +12 -11
- holidays/countries/ukraine.py +54 -54
- holidays/countries/united_arab_emirates.py +37 -30
- holidays/countries/united_kingdom.py +7 -6
- holidays/countries/united_states.py +50 -55
- holidays/countries/united_states_minor_outlying_islands.py +6 -4
- holidays/countries/united_states_virgin_islands.py +6 -4
- holidays/countries/uruguay.py +10 -9
- holidays/countries/uzbekistan.py +10 -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 +1 -1
- holidays/groups/balinese_saka.py +1 -1
- holidays/groups/buddhist.py +1 -1
- holidays/groups/chinese.py +1 -1
- 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 +1 -1
- holidays/groups/international.py +1 -1
- holidays/groups/islamic.py +12 -1
- 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 +366 -244
- holidays/ical.py +228 -0
- holidays/locale/ar_QA/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/en_CI/LC_MESSAGES/CI.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/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/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_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/tet/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/ur_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/mixins.py +2 -2
- holidays/observed_holiday_base.py +5 -2
- holidays/registry.py +6 -1
- holidays/utils.py +151 -151
- holidays/version.py +2 -2
- holidays-0.70.dist-info/METADATA +1404 -0
- {holidays-0.69.dist-info → holidays-0.70.dist-info}/RECORD +235 -217
- {holidays-0.69.dist-info → holidays-0.70.dist-info}/WHEEL +1 -1
- holidays-0.69.dist-info/AUTHORS → holidays-0.70.dist-info/licenses/AUTHORS.md +6 -2
- {holidays-0.69.dist-info → holidays-0.70.dist-info/licenses}/LICENSE +1 -1
- holidays-0.69.dist-info/METADATA +0 -1085
- {holidays-0.69.dist-info → holidays-0.70.dist-info}/top_level.txt +0 -0
holidays/countries/malaysia.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
|
|
@@ -63,6 +63,25 @@ class Malaysia(
|
|
|
63
63
|
IslamicHolidays,
|
|
64
64
|
StaticHolidays,
|
|
65
65
|
):
|
|
66
|
+
"""Malaysia holidays.
|
|
67
|
+
|
|
68
|
+
References:
|
|
69
|
+
* [Holidays Act 1951](https://www.kabinet.gov.my/bkpp/pdf/akta_warta/1951_12_31_act369.pdf)
|
|
70
|
+
* [Holidays Ordinance (Sabah Cap. 56)](https://sagc.sabah.gov.my/sites/default/files/law/HolidaysOrdinance.pdf)
|
|
71
|
+
* [Public Holidays Ordinance (Sarawak Cap. 8)](https://www.kabinet.gov.my/bkpp/pdf/akta_warta/sarawak_public_holidays_ord_chapter8.pdf)
|
|
72
|
+
* [Wikipedia](https://en.wikipedia.org/wiki/Public_holidays_in_Malaysia)
|
|
73
|
+
* <https://www.nst.com.my/news/nation/2020/03/571660/agongs-birthday-moved-june-6-june-8>
|
|
74
|
+
* <https://www.nst.com.my/news/nation/2024/02/1014012/melaka-cm-suggests-declaring-feb-20-federal-public-holiday-mark>
|
|
75
|
+
|
|
76
|
+
Section 3 of Holidays Act 1951:
|
|
77
|
+
> If any day specified in the Schedule falls on Sunday then the day following shall be
|
|
78
|
+
> a public holiday and if such day is already a public holiday, then the day following
|
|
79
|
+
> shall be a public holiday".
|
|
80
|
+
|
|
81
|
+
In Johor (until 1994 and in 2014-2024) and Kedah it's Friday to Sunday,
|
|
82
|
+
in Kelantan and Terengganu - Saturday to Sunday.
|
|
83
|
+
"""
|
|
84
|
+
|
|
66
85
|
country = "MY"
|
|
67
86
|
default_language = "ms_MY"
|
|
68
87
|
# %s (estimated).
|
|
@@ -128,23 +147,10 @@ class Malaysia(
|
|
|
128
147
|
|
|
129
148
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
130
149
|
"""
|
|
131
|
-
:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
- `Holidays Act 1951 <https://www.kabinet.gov.my/bkpp/pdf/akta_warta/1951_12_31_act369.pdf>`_
|
|
136
|
-
- `Holidays Ordinance (Sabah Cap. 56) <https://sagc.sabah.gov.my/sites/default/files/law/HolidaysOrdinance.pdf>`_
|
|
137
|
-
- `Public Holidays Ordinance (Sarawak Cap. 8) <https://www.kabinet.gov.my/bkpp/pdf/akta_warta/sarawak_public_holidays_ord_chapter8.pdf>`_
|
|
138
|
-
- `Wikipedia <https://en.wikipedia.org/wiki/Public_holidays_in_Malaysia>`_
|
|
139
|
-
- https://www.nst.com.my/news/nation/2020/03/571660/agongs-birthday-moved-june-6-june-8
|
|
140
|
-
- https://www.nst.com.my/news/nation/2024/02/1014012/melaka-cm-suggests-declaring-feb-20-federal-public-holiday-mark
|
|
141
|
-
|
|
142
|
-
Section 3 of Holidays Act 1951:
|
|
143
|
-
"If any day specified in the Schedule falls on Sunday then the day following shall be
|
|
144
|
-
a public holiday and if such day is already a public holiday, then the day following
|
|
145
|
-
shall be a public holiday".
|
|
146
|
-
In Johor (until 1994 and in 2014-2024) and Kedah it's Friday to Sunday,
|
|
147
|
-
in Kelantan and Terengganu - Saturday to Sunday.
|
|
150
|
+
Args:
|
|
151
|
+
islamic_show_estimated:
|
|
152
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
153
|
+
if holiday date is estimated.
|
|
148
154
|
"""
|
|
149
155
|
BuddhistCalendarHolidays.__init__(self, cls=MalaysiaBuddhistHolidays, show_estimated=True)
|
|
150
156
|
ChineseCalendarHolidays.__init__(self, cls=MalaysiaChineseHolidays, show_estimated=True)
|
holidays/countries/maldives.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,11 +16,12 @@ from holidays.holiday_base import HolidayBase
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class Maldives(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
19
|
-
"""
|
|
19
|
+
"""Maldives holidays.
|
|
20
|
+
|
|
20
21
|
References:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_the_Maldives>
|
|
23
|
+
* <https://www.timeanddate.com/holidays/maldives/>
|
|
24
|
+
* <http://www.mma.gov.mv/#/about/bankholidays>
|
|
24
25
|
"""
|
|
25
26
|
|
|
26
27
|
country = "MV"
|
|
@@ -28,8 +29,10 @@ class Maldives(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
28
29
|
|
|
29
30
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
30
31
|
"""
|
|
31
|
-
:
|
|
32
|
-
|
|
32
|
+
Args:
|
|
33
|
+
islamic_show_estimated:
|
|
34
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
35
|
+
if holiday date is estimated.
|
|
33
36
|
"""
|
|
34
37
|
InternationalHolidays.__init__(self)
|
|
35
38
|
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
|
holidays/countries/malta.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
|
|
@@ -17,24 +17,15 @@ from holidays.holiday_base import HolidayBase
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Malta(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
20
|
-
"""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Oldest Maltese Holidays Law available online in full.
|
|
25
|
-
https://legislation.mt/eli/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
https://legislation.mt/eli/
|
|
29
|
-
[Att 8 tal-1989]
|
|
30
|
-
Additional Holidays added.
|
|
31
|
-
https://legislation.mt/eli/act/1989/8
|
|
32
|
-
[Att 2 tal-2005]
|
|
33
|
-
If fall on weekends then not observed in terms of vacation leave.
|
|
34
|
-
https://legislation.mt/eli/act/2005/2/eng
|
|
35
|
-
[Att 4 tal-2021]
|
|
36
|
-
Revert Act II of 2005 changes for vacation leave.
|
|
37
|
-
https://legislation.mt/eli/cap/252/20210212/mlt
|
|
20
|
+
"""Malta holidays.
|
|
21
|
+
|
|
22
|
+
References:
|
|
23
|
+
* <https://www.gov.mt/en/About%20Malta/Pages/Public%20Holidays.aspx>
|
|
24
|
+
* [Att 10 tal-1980 (Oldest Maltese Holidays Law available online in full)](https://legislation.mt/eli/act/1980/10/mlt)
|
|
25
|
+
* [A.L. 40 tal-1987 (Additional Holidays added)](https://legislation.mt/eli/ln/1987/8/mlt)
|
|
26
|
+
* [Att 8 tal-1989 (Additional Holidays added)](https://legislation.mt/eli/act/1989/8)
|
|
27
|
+
* [Att 2 tal-2005 (If fall on weekends then not observed in terms of vacation leave)](https://legislation.mt/eli/act/2005/2/eng)
|
|
28
|
+
* [Att 4 tal-2021 (Revert Act II of 2005 changes for vacation leave)](https://legislation.mt/eli/cap/252/20210212/mlt)
|
|
38
29
|
"""
|
|
39
30
|
|
|
40
31
|
country = "MT"
|
|
@@ -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,9 +18,11 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class HolidaysMH(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
"""Marshall Islands holidays.
|
|
22
|
+
|
|
23
|
+
References:
|
|
24
|
+
* <https://rmiparliament.org/cms/component/content/article/14-pressrelease/49-important-public-holidays.html?Itemid=101>
|
|
25
|
+
* <https://www.rmiembassyus.org/country-profile#:~:text=national%20holidays>
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
28
|
country = "MH"
|
holidays/countries/mauritania.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 Mauritania(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
19
|
-
"""
|
|
19
|
+
"""Mauritania holidays.
|
|
20
|
+
|
|
20
21
|
References:
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Mauritania>
|
|
23
|
+
* <https://www.timeanddate.com/holidays/mauritania/>
|
|
23
24
|
"""
|
|
24
25
|
|
|
25
26
|
country = "MR"
|
|
@@ -27,8 +28,10 @@ class Mauritania(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
27
28
|
|
|
28
29
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
29
30
|
"""
|
|
30
|
-
:
|
|
31
|
-
|
|
31
|
+
Args:
|
|
32
|
+
islamic_show_estimated:
|
|
33
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
34
|
+
if holiday date is estimated.
|
|
32
35
|
"""
|
|
33
36
|
InternationalHolidays.__init__(self)
|
|
34
37
|
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
|
holidays/countries/mexico.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
|
|
@@ -17,13 +17,14 @@ from holidays.holiday_base import HolidayBase
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Mexico(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
20
|
-
"""
|
|
20
|
+
"""Mexico holidays.
|
|
21
|
+
|
|
21
22
|
References:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Mexico>
|
|
24
|
+
* <https://es.wikipedia.org/wiki/Anexo:D%C3%ADas_festivos_en_M%C3%A9xico>
|
|
25
|
+
* <https://www.gob.mx/cms/uploads/attachment/file/156203/1044_Ley_Federal_del_Trabajo.pdf>
|
|
26
|
+
* <http://www.diputados.gob.mx/LeyesBiblio/ref/lft/LFT_orig_01abr70_ima.pdf>
|
|
27
|
+
* <https://www.gob.mx/profedet/es/articulos/sabes-cuales-son-los-dias-de-descanso-obligatorio-para-este-2024>
|
|
27
28
|
"""
|
|
28
29
|
|
|
29
30
|
country = "MX"
|
holidays/countries/moldova.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,9 +19,11 @@ from holidays.holiday_base import HolidayBase
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class Moldova(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
"""Moldova holidays.
|
|
23
|
+
|
|
24
|
+
References:
|
|
25
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Moldova>
|
|
26
|
+
* <https://www.legis.md/cautare/getResults?doc_id=133686>
|
|
25
27
|
"""
|
|
26
28
|
|
|
27
29
|
country = "MD"
|
holidays/countries/monaco.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,9 +18,11 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Monaco(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
"""Monaco holidays.
|
|
22
|
+
|
|
23
|
+
References:
|
|
24
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Monaco>
|
|
25
|
+
* <https://en.service-public-entreprises.gouv.mc/Employment-and-social-affairs/Employment-regulations/Leave/Public-Holidays>
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
28
|
country = "MC"
|
holidays/countries/montenegro.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
|
|
@@ -34,11 +34,12 @@ class Montenegro(
|
|
|
34
34
|
IslamicHolidays,
|
|
35
35
|
StaticHolidays,
|
|
36
36
|
):
|
|
37
|
-
"""
|
|
37
|
+
"""Montenegro holidays.
|
|
38
|
+
|
|
38
39
|
References:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Montenegro>
|
|
41
|
+
* [Zakon o državnim i drugim praznicima](https://wapi.gov.me/download-preview/927f23a3-db4e-4f65-9f29-ce3c9dde0c90?version=1.0)
|
|
42
|
+
* [Zakon o svetkovanju vjerskih praznika](https://wapi.gov.me/download-preview/4f0b05a4-c85b-4eb2-bc29-0ad8363a9ba3?version=1.0)
|
|
42
43
|
"""
|
|
43
44
|
|
|
44
45
|
country = "ME"
|
|
@@ -55,8 +56,10 @@ class Montenegro(
|
|
|
55
56
|
|
|
56
57
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
57
58
|
"""
|
|
58
|
-
:
|
|
59
|
-
|
|
59
|
+
Args:
|
|
60
|
+
islamic_show_estimated:
|
|
61
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
62
|
+
if holiday date is estimated.
|
|
60
63
|
"""
|
|
61
64
|
ChristianHolidays.__init__(self, calendar=JULIAN_CALENDAR)
|
|
62
65
|
HebrewCalendarHolidays.__init__(self)
|
holidays/countries/morocco.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
|
|
@@ -17,12 +17,11 @@ from holidays.holiday_base import HolidayBase
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Morocco(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
20
|
-
"""
|
|
21
|
-
Morocco holidays.
|
|
20
|
+
"""Morocco holidays.
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
References:
|
|
23
|
+
* <https://fr.wikipedia.org/wiki/F%C3%AAtes_et_jours_f%C3%A9ri%C3%A9s_au_Maroc>
|
|
24
|
+
* <https://www.mmsp.gov.ma/fr/pratiques.aspx?id=38>
|
|
26
25
|
"""
|
|
27
26
|
|
|
28
27
|
country = "MA"
|
|
@@ -33,8 +32,10 @@ class Morocco(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
33
32
|
|
|
34
33
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
35
34
|
"""
|
|
36
|
-
:
|
|
37
|
-
|
|
35
|
+
Args:
|
|
36
|
+
islamic_show_estimated:
|
|
37
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
38
|
+
if holiday date is estimated.
|
|
38
39
|
"""
|
|
39
40
|
InternationalHolidays.__init__(self)
|
|
40
41
|
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
|
holidays/countries/mozambique.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
|
|
@@ -17,6 +17,8 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Mozambique(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
20
|
+
"""Mozambique holidays."""
|
|
21
|
+
|
|
20
22
|
country = "MZ"
|
|
21
23
|
default_language = "pt_MZ"
|
|
22
24
|
# %s (observed).
|
holidays/countries/namibia.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,11 +16,13 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class Namibia(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
"""Namibia holidays.
|
|
20
|
+
|
|
21
|
+
References:
|
|
22
|
+
* <https://www.officeholidays.com/countries/namibia>
|
|
23
|
+
* <https://www.timeanddate.com/holidays/namibia/>
|
|
24
|
+
* <https://tinyurl.com/lacorg5835>
|
|
22
25
|
|
|
23
|
-
https://tinyurl.com/lacorg5835
|
|
24
26
|
As of 1991/2/1, whenever a public holiday falls on a Sunday, it rolls over to the monday,
|
|
25
27
|
unless that monday is already a public holiday.
|
|
26
28
|
Since the interval from 1991/1/1 to 1991/2/1 includes only New Year's Day, and it's a Tuesday,
|
|
@@ -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,12 @@ from holidays.holiday_base import HolidayBase
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class Netherlands(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
23
|
-
"""
|
|
24
|
-
References:
|
|
23
|
+
"""Netherlands holidays.
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
References:
|
|
26
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_the_Netherlands>
|
|
27
|
+
* <https://nl.wikipedia.org/wiki/Feestdagen_in_Nederland>
|
|
28
|
+
* <http://www.iamsterdam.com/en/plan-your-trip/practical-info/public-holidays>
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
31
|
country = "NL"
|
|
@@ -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
|
|
@@ -24,6 +24,8 @@ from holidays.observed_holiday_base import (
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class NewZealand(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
27
|
+
"""New Zealand holidays."""
|
|
28
|
+
|
|
27
29
|
country = "NZ"
|
|
28
30
|
observed_label = "%s (observed)"
|
|
29
31
|
subdivisions = (
|
holidays/countries/nicaragua.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
|
|
@@ -17,11 +17,12 @@ from holidays.holiday_base import HolidayBase
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Nicaragua(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
20
|
-
"""
|
|
20
|
+
"""Nicaragua holidays.
|
|
21
|
+
|
|
21
22
|
References:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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>
|
|
25
26
|
"""
|
|
26
27
|
|
|
27
28
|
country = "NI"
|
holidays/countries/nigeria.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,8 +23,10 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SAT_SUN_TO_NEXT_
|
|
|
23
23
|
class Nigeria(
|
|
24
24
|
ObservedHolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays, StaticHolidays
|
|
25
25
|
):
|
|
26
|
-
"""
|
|
27
|
-
|
|
26
|
+
"""Nigeria holidays.
|
|
27
|
+
|
|
28
|
+
References:
|
|
29
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Nigeria>
|
|
28
30
|
"""
|
|
29
31
|
|
|
30
32
|
country = "NG"
|
|
@@ -33,8 +35,10 @@ class Nigeria(
|
|
|
33
35
|
|
|
34
36
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
35
37
|
"""
|
|
36
|
-
:
|
|
37
|
-
|
|
38
|
+
Args:
|
|
39
|
+
islamic_show_estimated:
|
|
40
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
41
|
+
if holiday date is estimated.
|
|
38
42
|
"""
|
|
39
43
|
ChristianHolidays.__init__(self)
|
|
40
44
|
InternationalHolidays.__init__(self)
|
|
@@ -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,16 +16,20 @@ from holidays.holiday_base import HolidayBase
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class NorthMacedonia(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays):
|
|
19
|
-
"""
|
|
20
|
-
|
|
19
|
+
"""North Macedonia holidays.
|
|
20
|
+
|
|
21
|
+
References:
|
|
22
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_North_Macedonia>
|
|
21
23
|
"""
|
|
22
24
|
|
|
23
25
|
country = "MK"
|
|
24
26
|
|
|
25
27
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
26
28
|
"""
|
|
27
|
-
:
|
|
28
|
-
|
|
29
|
+
Args:
|
|
30
|
+
islamic_show_estimated:
|
|
31
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
32
|
+
if holiday date is estimated.
|
|
29
33
|
"""
|
|
30
34
|
ChristianHolidays.__init__(self, JULIAN_CALENDAR)
|
|
31
35
|
InternationalHolidays.__init__(self)
|
|
@@ -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
|
|
@@ -15,9 +15,11 @@ from holidays.countries.united_states import US
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class HolidaysMP(US):
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
"""Northern Mariana Islands (the) holidays.
|
|
19
|
+
|
|
20
|
+
Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1.
|
|
21
|
+
See <https://en.wikipedia.org/wiki/ISO_3166-2:US#Subdivisions_included_in_ISO_3166-1>
|
|
22
|
+
"""
|
|
21
23
|
|
|
22
24
|
country = "MP"
|
|
23
25
|
supported_categories = (GOVERNMENT, PUBLIC, UNOFFICIAL)
|
holidays/countries/norway.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,29 +18,29 @@ from holidays.holiday_base import HolidayBase
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Norway(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
21
|
-
"""
|
|
22
|
-
Norwegian holidays.
|
|
23
|
-
Note that holidays falling on a sunday is "lost",
|
|
24
|
-
it will not be moved to another day to make up for the collision.
|
|
21
|
+
"""Norway holidays.
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
References:
|
|
24
|
+
* <https://lovdata.no/dokument/NL/lov/1947-04-26-1>
|
|
25
|
+
* <https://no.wikipedia.org/wiki/Helligdager_i_Norge>
|
|
26
|
+
* <https://www.timeanddate.no/merkedag/norge/>
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
Note that holidays falling on a sunday is "lost", it will not be moved
|
|
29
|
+
to another day to make up for the collision.
|
|
30
|
+
|
|
31
|
+
In Norway, ALL sundays are considered a holiday (https://snl.no/helligdag).
|
|
32
|
+
Initialize this class with `include_sundays=False` to not include sundays as a holiday.
|
|
34
33
|
"""
|
|
35
34
|
|
|
36
35
|
country = "NO"
|
|
37
36
|
default_language = "no"
|
|
38
37
|
supported_languages = ("en_US", "no", "th", "uk")
|
|
39
38
|
|
|
40
|
-
def __init__(self, include_sundays=False, *args, **kwargs):
|
|
39
|
+
def __init__(self, include_sundays: bool = False, *args, **kwargs):
|
|
41
40
|
"""
|
|
42
|
-
:
|
|
43
|
-
|
|
41
|
+
Args:
|
|
42
|
+
include_sundays:
|
|
43
|
+
Whether to consider sundays as a holiday (which they are in Norway)
|
|
44
44
|
"""
|
|
45
45
|
self.include_sundays = include_sundays
|
|
46
46
|
ChristianHolidays.__init__(self)
|