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/guernsey.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,13 +23,15 @@ from holidays.observed_holiday_base import (
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
class Guernsey(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
26
|
-
"""
|
|
26
|
+
"""Guernsey holidays.
|
|
27
|
+
|
|
27
28
|
References:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Guernsey>
|
|
30
|
+
* <https://guernseylegalresources.gg/ordinances/guernsey-bailiwick/p/public-holidays/>
|
|
31
|
+
* <https://www.thegazette.co.uk/all-notices>
|
|
32
|
+
|
|
31
33
|
Checked with:
|
|
32
|
-
|
|
34
|
+
* <https://www.gov.gg/holidaydates>
|
|
33
35
|
|
|
34
36
|
His/Her Majesty's Birthday pre-1946 is cross-checked with The London Gazette's Record,
|
|
35
37
|
Specifically as "Home Station" entry under King's Birthday declaration lists.
|
|
@@ -230,35 +232,36 @@ class GGY(Guernsey):
|
|
|
230
232
|
|
|
231
233
|
|
|
232
234
|
class GuernseyStaticHolidays:
|
|
233
|
-
"""
|
|
235
|
+
"""Guernsey special holidays.
|
|
236
|
+
|
|
234
237
|
References:
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
238
|
+
* <https://www.gov.gg/holidaydates>
|
|
239
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=52182>
|
|
240
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=52183>
|
|
241
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=52184>
|
|
242
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=52185>
|
|
243
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=52188>
|
|
244
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=52189>
|
|
245
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=52631>
|
|
246
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=55175>
|
|
247
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=55176>
|
|
248
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=55177>
|
|
249
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=55179>
|
|
250
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=55180>
|
|
251
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=55183>
|
|
252
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=55185>
|
|
253
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=55505>
|
|
254
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=57425>
|
|
255
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=60605>
|
|
256
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=60606>
|
|
257
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=60607>
|
|
258
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=60608>
|
|
259
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=60613>
|
|
260
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=60614>
|
|
261
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=79939>
|
|
262
|
+
* <https://guernseylegalresources.gg/CHttpHandler.ashx?documentid=83147>
|
|
263
|
+
* <https://www.bbc.com/news/world-europe-guernsey-62864318>
|
|
264
|
+
* <https://www.bbc.co.uk/news/articles/c1441ddn87po>
|
|
262
265
|
|
|
263
266
|
All "jour de relâche" entries are translated as special day off instead.
|
|
264
267
|
|
|
@@ -0,0 +1,182 @@
|
|
|
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 AUTHORS.md 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 import _CustomIslamicHolidays
|
|
16
|
+
from holidays.calendars.gregorian import MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
|
|
17
|
+
from holidays.groups import ChristianHolidays, InternationalHolidays, IslamicHolidays
|
|
18
|
+
from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Guinea(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays):
|
|
22
|
+
"""Guinea holidays.
|
|
23
|
+
|
|
24
|
+
References:
|
|
25
|
+
* [Decree No. 2022-0526](https://igt.gov.gn/wp-content/uploads/2024/10/D-2022-0526-PRG-CNRD_221103_131021.pdf)
|
|
26
|
+
* <https://www.timeanddate.com/holidays/guinea/>
|
|
27
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Guinea>
|
|
28
|
+
* <https://anydayguide.com/calendar/1878>
|
|
29
|
+
* <https://www.timeanddate.com/holidays/guinea/second-republic-day>
|
|
30
|
+
* <https://www.timeanddate.com/holidays/guinea/all-saints-day>
|
|
31
|
+
|
|
32
|
+
According to Decree No. 2022-0526 of 2 November 2022:
|
|
33
|
+
* Eid al-Adha became a two-day holiday (Article 1).
|
|
34
|
+
* If New Year's Day, Independence Day or Eid al-Fitr fall on a non-working day,
|
|
35
|
+
the next working day is also a holiday (Article 2).
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
country = "GN"
|
|
39
|
+
default_language = "fr"
|
|
40
|
+
# %s (estimated).
|
|
41
|
+
estimated_label = tr("%s (estimé)")
|
|
42
|
+
# Day after the %s.
|
|
43
|
+
observed_label = tr("Lendemain de la %s")
|
|
44
|
+
# Day after the %s (estimated).
|
|
45
|
+
observed_estimated_label = tr("Lendemain de la %s (estimé)")
|
|
46
|
+
supported_languages = ("en_US", "fr")
|
|
47
|
+
|
|
48
|
+
# Guinea gained independence from France on October 2, 1958.
|
|
49
|
+
start_year = 1959
|
|
50
|
+
|
|
51
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
52
|
+
"""
|
|
53
|
+
Args:
|
|
54
|
+
islamic_show_estimated:
|
|
55
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
56
|
+
if holiday date is estimated.
|
|
57
|
+
"""
|
|
58
|
+
ChristianHolidays.__init__(self)
|
|
59
|
+
InternationalHolidays.__init__(self)
|
|
60
|
+
IslamicHolidays.__init__(
|
|
61
|
+
self, cls=GuineaIslamicHolidays, show_estimated=islamic_show_estimated
|
|
62
|
+
)
|
|
63
|
+
kwargs.setdefault("observed_rule", SUN_TO_NEXT_MON)
|
|
64
|
+
super().__init__(*args, **kwargs)
|
|
65
|
+
|
|
66
|
+
def _populate_public_holidays(self):
|
|
67
|
+
# New Year's Day.
|
|
68
|
+
dt = self._add_new_years_day(tr("Fête du Nouvel an"))
|
|
69
|
+
if self._year >= 2023:
|
|
70
|
+
self._add_observed(dt)
|
|
71
|
+
|
|
72
|
+
if 1985 <= self._year <= 2021:
|
|
73
|
+
# Second Republic Day.
|
|
74
|
+
self._add_holiday_apr_3(tr("Jour de la Deuxième République"))
|
|
75
|
+
|
|
76
|
+
# Easter Monday.
|
|
77
|
+
self._add_easter_monday(tr("Lundi de Pâques"))
|
|
78
|
+
|
|
79
|
+
# Labor Day.
|
|
80
|
+
self._add_labor_day(tr("Fête du Travail"))
|
|
81
|
+
|
|
82
|
+
# Africa Day.
|
|
83
|
+
self._add_africa_day(tr("Anniversaire de l'Union Africaine"))
|
|
84
|
+
|
|
85
|
+
# Assumption Day.
|
|
86
|
+
self._add_assumption_of_mary_day(tr("Assomption"))
|
|
87
|
+
|
|
88
|
+
# Independence Day.
|
|
89
|
+
dt = self._add_holiday_oct_2(tr("Fête anniversaire de l'indépendance de la Guinée"))
|
|
90
|
+
if self._year >= 2023:
|
|
91
|
+
self._add_observed(dt)
|
|
92
|
+
|
|
93
|
+
if self._year <= 2021:
|
|
94
|
+
# All Saints' Day.
|
|
95
|
+
self._add_all_saints_day(tr("Toussaint"))
|
|
96
|
+
|
|
97
|
+
# Christmas Day.
|
|
98
|
+
self._add_christmas_day(tr("Fête de Noël"))
|
|
99
|
+
|
|
100
|
+
# Day after Prophet's Birthday.
|
|
101
|
+
self._add_mawlid_day(tr("Lendemain de la nuit du Maoloud"))
|
|
102
|
+
|
|
103
|
+
# Day after Night of Power.
|
|
104
|
+
self._add_laylat_al_qadr_day(tr("Lendemain de la nuit Lailatoul Qadr"))
|
|
105
|
+
|
|
106
|
+
# Eid al-Fitr.
|
|
107
|
+
for dt in self._add_eid_al_fitr_day(tr("Jour de l'Aïd el-Fitr")):
|
|
108
|
+
if self._year >= 2023:
|
|
109
|
+
self._add_observed(dt)
|
|
110
|
+
|
|
111
|
+
# Eid al-Adha.
|
|
112
|
+
self._add_eid_al_adha_day(tr("Jour de la Tabaski"))
|
|
113
|
+
|
|
114
|
+
if self._year >= 2023:
|
|
115
|
+
# Day after Eid al-Adha.
|
|
116
|
+
self._add_eid_al_adha_day_two(tr("Lendemain de la Tabaski"))
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class GN(Guinea):
|
|
120
|
+
pass
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
class GIN(Guinea):
|
|
124
|
+
pass
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
class GuineaIslamicHolidays(_CustomIslamicHolidays):
|
|
128
|
+
EID_AL_ADHA_DATES = {
|
|
129
|
+
2015: (SEP, 24),
|
|
130
|
+
2016: (SEP, 13),
|
|
131
|
+
2017: (SEP, 2),
|
|
132
|
+
2018: (AUG, 22),
|
|
133
|
+
2019: (AUG, 11),
|
|
134
|
+
2020: (JUL, 31),
|
|
135
|
+
2021: (JUL, 20),
|
|
136
|
+
2022: (JUL, 10),
|
|
137
|
+
2023: (JUN, 28),
|
|
138
|
+
2024: (JUN, 16),
|
|
139
|
+
2025: (JUN, 7),
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
EID_AL_FITR_DATES = {
|
|
143
|
+
2015: (JUL, 18),
|
|
144
|
+
2016: (JUL, 7),
|
|
145
|
+
2017: (JUN, 26),
|
|
146
|
+
2018: (JUN, 15),
|
|
147
|
+
2019: (JUN, 4),
|
|
148
|
+
2020: (MAY, 24),
|
|
149
|
+
2021: (MAY, 13),
|
|
150
|
+
2022: (MAY, 2),
|
|
151
|
+
2023: (APR, 21),
|
|
152
|
+
2024: (APR, 10),
|
|
153
|
+
2025: (MAR, 31),
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
MAWLID_DATES = {
|
|
157
|
+
2015: (DEC, 24),
|
|
158
|
+
2016: (DEC, 12),
|
|
159
|
+
2017: (DEC, 1),
|
|
160
|
+
2018: (NOV, 20),
|
|
161
|
+
2019: (NOV, 10),
|
|
162
|
+
2020: (OCT, 29),
|
|
163
|
+
2021: (OCT, 18),
|
|
164
|
+
2022: (OCT, 8),
|
|
165
|
+
2023: (SEP, 27),
|
|
166
|
+
2024: (SEP, 15),
|
|
167
|
+
2025: (SEP, 5),
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
LAYLAT_AL_QADR_DATES = {
|
|
171
|
+
2015: (JUL, 14),
|
|
172
|
+
2016: (JUL, 3),
|
|
173
|
+
2017: (JUN, 22),
|
|
174
|
+
2018: (JUN, 12),
|
|
175
|
+
2019: (JUN, 1),
|
|
176
|
+
2020: (MAY, 20),
|
|
177
|
+
2021: (MAY, 9),
|
|
178
|
+
2022: (APR, 29),
|
|
179
|
+
2023: (APR, 18),
|
|
180
|
+
2024: (APR, 6),
|
|
181
|
+
2025: (MAR, 27),
|
|
182
|
+
}
|
holidays/countries/haiti.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -18,11 +18,12 @@ from holidays.holiday_base import HolidayBase
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Haiti(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
21
|
-
"""
|
|
21
|
+
"""Haiti holidays.
|
|
22
|
+
|
|
22
23
|
References:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
* <https://www.wipo.int/wipolex/en/legislation/details/7837>
|
|
25
|
+
* <https://haitiwonderland.com/haiti/histoire/jours-feries-en-haiti/27>
|
|
26
|
+
* <https://www.haiti-reference.info/pages/plan/generalites/calendrier-dhaiti/>
|
|
26
27
|
"""
|
|
27
28
|
|
|
28
29
|
country = "HT"
|
holidays/countries/honduras.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,8 +17,12 @@ from holidays.holiday_base import HolidayBase
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Honduras(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
"""Honduras holidays.
|
|
21
|
+
|
|
22
|
+
References:
|
|
23
|
+
* [Art. 339 of Labor Code](https://www.ilo.org/dyn/natlex/docs/WEBTEXT/29076/64849/S59HND01.htm)
|
|
24
|
+
* [Decree 78-2015](https://www.tsc.gob.hn/web/leyes/Decreto_78-2015_Traslado_de_Feriados_Octubre.pdf)
|
|
25
|
+
"""
|
|
22
26
|
|
|
23
27
|
country = "HN"
|
|
24
28
|
default_language = "es"
|
|
@@ -51,7 +55,7 @@ class Honduras(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
51
55
|
# Independence Day.
|
|
52
56
|
self._add_holiday_sep_15(tr("Día de la Independencia"))
|
|
53
57
|
|
|
54
|
-
#
|
|
58
|
+
# Decree 78-2015.
|
|
55
59
|
if self._year <= 2014:
|
|
56
60
|
# Morazan's Day.
|
|
57
61
|
self._add_holiday_oct_3(tr("Día de Morazán"))
|
holidays/countries/hongkong.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
|
|
@@ -51,16 +51,19 @@ class HongKong(
|
|
|
51
51
|
PreferredDiscretionaryHolidays,
|
|
52
52
|
StaticHolidays,
|
|
53
53
|
):
|
|
54
|
-
"""
|
|
54
|
+
"""Hong Kong holidays.
|
|
55
|
+
|
|
55
56
|
References:
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
* [English Wikipedia](https://en.wikipedia.org/wiki/Public_holidays_in_Hong_Kong)
|
|
58
|
+
* [Chinese Wikipedia](https://zh.wikipedia.org/wiki/香港節日與公眾假期)
|
|
59
|
+
|
|
58
60
|
Statutory Holidays:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
* [Section 39 of Cap. 57 Employment Ordinance](https://www.elegislation.gov.hk/hk/cap57!en-zh-Hant-HK?INDEX_CS=N&xpid=ID_1438403463460_002)
|
|
62
|
+
* [Holidays for 2010-2025](https://www.labour.gov.hk/eng/news/holidays_list.htm)
|
|
63
|
+
|
|
61
64
|
General Holidays:
|
|
62
|
-
|
|
63
|
-
|
|
65
|
+
* [Cap. 149 General Holidays Ordinance](https://www.elegislation.gov.hk/hk/cap149!en-zh-Hant-HK?INDEX_CS=N)
|
|
66
|
+
* [Holidays for 2007–2025](https://www.gov.hk/en/about/abouthk/holiday/index.htm)
|
|
64
67
|
"""
|
|
65
68
|
|
|
66
69
|
country = "HK"
|
holidays/countries/hungary.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,28 +18,12 @@ from holidays.holiday_base import HolidayBase
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Hungary(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
Substituted holidays official sources:
|
|
29
|
-
- `2010 <https://njt.hu/jogszabaly/2009-20-20-1X>`_
|
|
30
|
-
- `2011 <https://njt.hu/jogszabaly/2010-7-20-2X>`_
|
|
31
|
-
- `2012 <https://njt.hu/jogszabaly/2011-39-20-2X>`_
|
|
32
|
-
- `2012-2013 <https://njt.hu/jogszabaly/2012-28-20-2X>`_
|
|
33
|
-
- `2014 <https://njt.hu/jogszabaly/2013-33-20-2X>`_
|
|
34
|
-
- `2015 <https://njt.hu/jogszabaly/2014-28-20-2X>`_
|
|
35
|
-
- `2016 <https://njt.hu/jogszabaly/2015-18-20-2X>`_
|
|
36
|
-
- `2018 <https://njt.hu/jogszabaly/2017-61-B0-15>`_
|
|
37
|
-
- `2019 <https://njt.hu/jogszabaly/2018-6-20-53>`_
|
|
38
|
-
- `2020 <https://njt.hu/jogszabaly/2019-7-20-53>`_
|
|
39
|
-
- `2021 <https://njt.hu/jogszabaly/2020-14-20-7Q>`_
|
|
40
|
-
- `2022 <https://njt.hu/jogszabaly/2021-23-20-7Q>`_
|
|
41
|
-
- `2024 <https://njt.hu/jogszabaly/2023-15-20-8P>`_
|
|
42
|
-
- `2025 <https://njt.hu/jogszabaly/2024-11-20-2X>`_
|
|
21
|
+
"""Hungary holidays.
|
|
22
|
+
|
|
23
|
+
References:
|
|
24
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Hungary>
|
|
25
|
+
* <https://hvg.hu/gazdasag/20170307_Megszavaztak_munkaszuneti_nap_lett_a_nagypentek>
|
|
26
|
+
* <https://www.tankonyvtar.hu/hu/tartalom/historia/92-10/ch01.html#id496839>
|
|
43
27
|
"""
|
|
44
28
|
|
|
45
29
|
country = "HU"
|
|
@@ -130,6 +114,25 @@ class HUN(Hungary):
|
|
|
130
114
|
|
|
131
115
|
|
|
132
116
|
class HungaryStaticHolidays:
|
|
117
|
+
"""Hungary special holidays.
|
|
118
|
+
|
|
119
|
+
References:
|
|
120
|
+
* [2010](https://njt.hu/jogszabaly/2009-20-20-1X)
|
|
121
|
+
* [2011](https://njt.hu/jogszabaly/2010-7-20-2X)
|
|
122
|
+
* [2012](https://njt.hu/jogszabaly/2011-39-20-2X)
|
|
123
|
+
* [2012-2013](https://njt.hu/jogszabaly/2012-28-20-2X)
|
|
124
|
+
* [2014](https://njt.hu/jogszabaly/2013-33-20-2X)
|
|
125
|
+
* [2015](https://njt.hu/jogszabaly/2014-28-20-2X)
|
|
126
|
+
* [2016](https://njt.hu/jogszabaly/2015-18-20-2X)
|
|
127
|
+
* [2018](https://njt.hu/jogszabaly/2017-61-B0-15)
|
|
128
|
+
* [2019](https://njt.hu/jogszabaly/2018-6-20-53)
|
|
129
|
+
* [2020](https://njt.hu/jogszabaly/2019-7-20-53)
|
|
130
|
+
* [2021](https://njt.hu/jogszabaly/2020-14-20-7Q)
|
|
131
|
+
* [2022](https://njt.hu/jogszabaly/2021-23-20-7Q)
|
|
132
|
+
* [2024](https://njt.hu/jogszabaly/2023-15-20-8P)
|
|
133
|
+
* [2025](https://njt.hu/jogszabaly/2024-11-20-2X)
|
|
134
|
+
"""
|
|
135
|
+
|
|
133
136
|
# Substituted date format.
|
|
134
137
|
substituted_date_format = tr("%Y. %m. %d.")
|
|
135
138
|
# Day off (substituted from %s).
|
holidays/countries/iceland.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,10 +18,11 @@ from holidays.holiday_base import HolidayBase
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Iceland(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
21
|
-
"""
|
|
21
|
+
"""Iceland holidays.
|
|
22
|
+
|
|
22
23
|
References:
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Iceland>
|
|
25
|
+
* <https://www.althingi.is/lagas/nuna/1971088.html>
|
|
25
26
|
"""
|
|
26
27
|
|
|
27
28
|
country = "IS"
|
holidays/countries/india.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
|
|
@@ -28,13 +28,15 @@ from holidays.holiday_base import HolidayBase
|
|
|
28
28
|
class India(
|
|
29
29
|
HolidayBase, ChristianHolidays, HinduCalendarHolidays, InternationalHolidays, IslamicHolidays
|
|
30
30
|
):
|
|
31
|
-
"""
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
"""India holidays.
|
|
32
|
+
|
|
33
|
+
References:
|
|
34
|
+
* <https://www.india.gov.in/calendar>
|
|
35
|
+
* <https://www.india.gov.in/state-and-ut-holiday-calendar>
|
|
36
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_India>
|
|
37
|
+
* <https://www.calendarlabs.com/holidays/india/2021>
|
|
38
|
+
* <https://slusi.dacnet.nic.in/watershedatlas/list_of_state_abbreviation.htm>
|
|
39
|
+
* <https://vahan.parivahan.gov.in/vahan4dashboard/>
|
|
38
40
|
"""
|
|
39
41
|
|
|
40
42
|
country = "IN"
|
|
@@ -148,8 +150,10 @@ class India(
|
|
|
148
150
|
|
|
149
151
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
150
152
|
"""
|
|
151
|
-
:
|
|
152
|
-
|
|
153
|
+
Args:
|
|
154
|
+
islamic_show_estimated:
|
|
155
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
156
|
+
if holiday date is estimated.
|
|
153
157
|
"""
|
|
154
158
|
ChristianHolidays.__init__(self)
|
|
155
159
|
HinduCalendarHolidays.__init__(self)
|