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/pakistan.py
CHANGED
|
@@ -4,12 +4,14 @@
|
|
|
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
|
|
11
11
|
# License: MIT (see LICENSE file)
|
|
12
12
|
|
|
13
|
+
from gettext import gettext as tr
|
|
14
|
+
|
|
13
15
|
from holidays.calendars import _CustomIslamicHolidays
|
|
14
16
|
from holidays.calendars.gregorian import JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
|
|
15
17
|
from holidays.groups import InternationalHolidays, IslamicHolidays
|
|
@@ -17,13 +19,26 @@ from holidays.holiday_base import HolidayBase
|
|
|
17
19
|
|
|
18
20
|
|
|
19
21
|
class Pakistan(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
22
|
+
"""Pakistan holidays.
|
|
23
|
+
|
|
24
|
+
References:
|
|
25
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Pakistan>
|
|
26
|
+
* <https://ur.wikipedia.org/wiki/تعطیلات_پاکستان>
|
|
27
|
+
"""
|
|
28
|
+
|
|
20
29
|
country = "PK"
|
|
30
|
+
default_language = "en_PK"
|
|
31
|
+
# %s (estimated).
|
|
32
|
+
estimated_label = tr("%s (estimated)")
|
|
21
33
|
start_year = 1948
|
|
34
|
+
supported_languages = ("en_PK", "en_US", "ur_PK")
|
|
22
35
|
|
|
23
36
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
24
37
|
"""
|
|
25
|
-
:
|
|
26
|
-
|
|
38
|
+
Args:
|
|
39
|
+
islamic_show_estimated:
|
|
40
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
41
|
+
if holiday date is estimated.
|
|
27
42
|
"""
|
|
28
43
|
InternationalHolidays.__init__(self)
|
|
29
44
|
IslamicHolidays.__init__(
|
|
@@ -32,41 +47,45 @@ class Pakistan(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
32
47
|
super().__init__(*args, **kwargs)
|
|
33
48
|
|
|
34
49
|
def _populate_public_holidays(self):
|
|
35
|
-
# Kashmir Solidarity Day.
|
|
36
50
|
if self._year >= 1990:
|
|
37
|
-
|
|
51
|
+
# Kashmir Solidarity Day.
|
|
52
|
+
self._add_holiday_feb_5(tr("Kashmir Solidarity Day"))
|
|
38
53
|
|
|
39
|
-
# Pakistan Day.
|
|
40
54
|
if self._year >= 1956:
|
|
41
|
-
|
|
55
|
+
# Pakistan Day.
|
|
56
|
+
self._add_holiday_mar_23(tr("Pakistan Day"))
|
|
42
57
|
|
|
43
|
-
# Labour Day.
|
|
44
58
|
if self._year >= 1972:
|
|
45
|
-
|
|
59
|
+
# Labor Day.
|
|
60
|
+
self._add_labor_day(tr("Labour Day"))
|
|
46
61
|
|
|
47
62
|
# Independence Day.
|
|
48
|
-
self._add_holiday_aug_14("Independence Day")
|
|
63
|
+
self._add_holiday_aug_14(tr("Independence Day"))
|
|
49
64
|
|
|
50
|
-
# Iqbal Day.
|
|
51
65
|
if self._year <= 2014 or self._year >= 2022:
|
|
52
|
-
|
|
66
|
+
# Iqbal Day.
|
|
67
|
+
self._add_holiday_nov_9(tr("Iqbal Day"))
|
|
53
68
|
|
|
54
69
|
# Quaid-e-Azam Day.
|
|
55
|
-
self._add_holiday_dec_25("Quaid-e-Azam Day")
|
|
70
|
+
self._add_holiday_dec_25(tr("Quaid-e-Azam Day"))
|
|
56
71
|
|
|
57
|
-
|
|
72
|
+
# Eid al-Fitr.
|
|
73
|
+
name = tr("Eid-ul-Fitr")
|
|
58
74
|
self._add_eid_al_fitr_day(name)
|
|
59
75
|
self._add_eid_al_fitr_day_two(name)
|
|
60
76
|
self._add_eid_al_fitr_day_three(name)
|
|
61
77
|
|
|
62
|
-
|
|
78
|
+
# Eid al-Adha.
|
|
79
|
+
name = tr("Eid-ul-Adha")
|
|
63
80
|
self._add_eid_al_adha_day(name)
|
|
64
81
|
self._add_eid_al_adha_day_two(name)
|
|
65
82
|
self._add_eid_al_adha_day_three(name)
|
|
66
83
|
|
|
67
|
-
|
|
84
|
+
# Prophet's Birthday.
|
|
85
|
+
self._add_mawlid_day(tr("Eid Milad-un-Nabi"))
|
|
68
86
|
|
|
69
|
-
|
|
87
|
+
# Ashura.
|
|
88
|
+
name = tr("Ashura")
|
|
70
89
|
self._add_ashura_eve(name)
|
|
71
90
|
self._add_ashura_day(name)
|
|
72
91
|
|
|
@@ -101,6 +120,8 @@ class PakistanIslamicHolidays(_CustomIslamicHolidays):
|
|
|
101
120
|
2020: (AUG, 29),
|
|
102
121
|
2021: (AUG, 18),
|
|
103
122
|
2022: (AUG, 9),
|
|
123
|
+
2023: (JUL, 28),
|
|
124
|
+
2024: (JUL, 16),
|
|
104
125
|
}
|
|
105
126
|
|
|
106
127
|
# https://www.timeanddate.com/holidays/pakistan/eid-ul-azha
|
|
@@ -124,6 +145,7 @@ class PakistanIslamicHolidays(_CustomIslamicHolidays):
|
|
|
124
145
|
2021: (JUL, 21),
|
|
125
146
|
2022: (JUL, 10),
|
|
126
147
|
2023: (JUN, 29),
|
|
148
|
+
2024: (JUN, 17),
|
|
127
149
|
}
|
|
128
150
|
|
|
129
151
|
# https://www.timeanddate.com/holidays/pakistan/eid-ul-fitr-1
|
|
@@ -170,4 +192,6 @@ class PakistanIslamicHolidays(_CustomIslamicHolidays):
|
|
|
170
192
|
2020: (OCT, 30),
|
|
171
193
|
2021: (OCT, 19),
|
|
172
194
|
2022: (OCT, 9),
|
|
195
|
+
2023: (SEP, 29),
|
|
196
|
+
2024: (SEP, 17),
|
|
173
197
|
}
|
holidays/countries/palau.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,13 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SAT_TO_PREV_FRI,
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Palau(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
20
|
-
"""
|
|
20
|
+
"""Palau holidays.
|
|
21
|
+
|
|
21
22
|
References:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
* [Chapter 7, Holidays](http://www.paclii.org/pw/legis/consol_act/gpt1262/)
|
|
24
|
+
* <https://www.palaugov.pw/wp-content/uploads/2017/11/RPPL-No.-10-15-re.-Family-Day-Holiday.pdf>
|
|
25
|
+
* [EO336 Memorial Day repealed](https://www.facebook.com/PalauPresident/posts/195883107230463)
|
|
26
|
+
* [Earliest source for President's Day](https://www.taiwanembassy.org/pal_en/post/792.html)
|
|
26
27
|
|
|
27
28
|
If any of the holidays enumerated in section 701 of this chapter falls on Sunday, the
|
|
28
29
|
following Monday shall be observed as a holiday. If any of the holidays enumerated in
|
|
@@ -105,11 +106,12 @@ class PLW(Palau):
|
|
|
105
106
|
|
|
106
107
|
|
|
107
108
|
class PalauStaticHolidays:
|
|
108
|
-
"""
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
"""Palau special holidays.
|
|
110
|
+
|
|
111
|
+
References:
|
|
112
|
+
* <https://www.facebook.com/photo?fbid=1774513196034105&set=a.175933635892077>
|
|
113
|
+
* <https://www.facebook.com/photo/?fbid=1794692910682800&set=a.175933635892077>
|
|
114
|
+
* <https://www.facebook.com/photo/?fbid=1408133829338712&set=a.175933635892077>
|
|
113
115
|
"""
|
|
114
116
|
|
|
115
117
|
special_armed_forces_holidays = {
|
holidays/countries/panama.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -19,14 +19,15 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class Panama(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
22
|
-
"""
|
|
22
|
+
"""Panama holidays.
|
|
23
|
+
|
|
23
24
|
References:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Panama>
|
|
26
|
+
* [Labor Code 1947](https://docs.panama.justia.com/federales/leyes/67-de-1947-nov-26-1947.pdf)
|
|
27
|
+
* [Cabinet Decree #347 of 1969](https://docs.panama.justia.com/federales/decretos-de-gabinete/decreto-de-gabinete-347-de-1969-nov-14-1969.pdf)
|
|
28
|
+
* [Labor Code 1971](https://www.mitradel.gob.pa/wp-content/uploads/2016/12/c%C3%B3digo-detrabajo.pdf)
|
|
29
|
+
* [Law #4 of Jun 25, 1990](https://s3-legispan.asamblea.gob.pa/legispan/NORMAS/1990/1990/LEY/Administrador%20Legispan_21570_1990_7_2_ASAMBLEA%20LEGISLATIVA_4.pdf)
|
|
30
|
+
* [Law #55 of Nov 7, 2001](https://docs.panama.justia.com/federales/leyes/55-de-2001-nov-14-2001.pdf)
|
|
30
31
|
"""
|
|
31
32
|
|
|
32
33
|
country = "PA"
|
|
@@ -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,19 +18,21 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON,
|
|
|
18
18
|
class PapuaNewGuinea(
|
|
19
19
|
ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
20
20
|
):
|
|
21
|
-
"""
|
|
21
|
+
"""Papua New Guinea holidays.
|
|
22
|
+
|
|
22
23
|
References:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
* [Public Holidays Act 1953](http://www.paclii.org/pg/legis/consol_act/pha1953163.pdf)
|
|
25
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Papua_New_Guinea>
|
|
26
|
+
* <https://pnghausbung.com/kings-birthday-holiday-to-be-observed-on-16th-june/>
|
|
27
|
+
|
|
26
28
|
Checked With:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
* <https://www.ipa.gov.pg/public/Holidays.aspx>
|
|
30
|
+
* <https://www.businessadvantagepng.com/papua-new-guinea-public-for-holidays/>
|
|
31
|
+
* [2019](https://www.scribd.com/document/465334129/PNG-2019-Gazetted-Public-Holidays-pdf)
|
|
32
|
+
* [2020](https://publicholidays.asia/wp-content/uploads/2020/01/PNG_PublicHolidays_2020.png)
|
|
33
|
+
* [2021](https://publicholidays.asia/wp-content/uploads/2020/12/PNG_PublicHolidays_2021.pdf)
|
|
34
|
+
* [2022](https://publicholidays.asia/wp-content/uploads/2022/01/PNG_PublicHolidays_2022.pdf)
|
|
35
|
+
* [2023](https://publicholidays.asia/wp-content/uploads/2022/12/PNG_PublicHolidays_2023.pdf)
|
|
34
36
|
|
|
35
37
|
Should a holiday listed, other than the Christmas Day, fall on a Sunday the next Monday
|
|
36
38
|
shall, unless the Head of State, acting on advice, declares otherwise, be observed as a
|
|
@@ -130,18 +132,20 @@ class PNG(PapuaNewGuinea):
|
|
|
130
132
|
|
|
131
133
|
|
|
132
134
|
class PapuaNewGuineaStaticHolidays:
|
|
133
|
-
"""
|
|
134
|
-
Starting from 2021 afterwards all state funerals are given special public holidays, though only
|
|
135
|
-
some are day-off nationwide.
|
|
135
|
+
"""Papua New Guinea special holidays.
|
|
136
136
|
|
|
137
137
|
References:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
* [2018 APEC Public Holiday](https://www.rnz.co.nz/international/pacific-news/369989/papua-new-guinea-declares-apec-holiday)
|
|
139
|
+
* [2021 Sir Mekere Morauta's Funeral](https://pnghausbung.com/friday-8th-declared-a-nation-wide-public-holiday-to-honour-late-sir-mekere/)
|
|
140
|
+
* [2021 Sir Michael Somare's Day of Mourning](https://pnghausbung.com/2-weeks-mourning-period-for-late-sir-micheal-to-start-with-public-holiday-on-monday-pm/)
|
|
141
|
+
* [2022 QE2's Funeral](https://www.thenational.com.pg/column-1-553/)
|
|
142
|
+
* [2023 Sir Rabbie Namaliu's Funeral](https://pnghausbung.com/breaking-public-holiday-tomorrow-in-respect-of-late-sir-rabbies-state-funeral/)
|
|
143
|
+
|
|
144
|
+
Nov 15, 2018 is an APEC Holiday too, but for Port Moresby-only:
|
|
145
|
+
<https://www.businessadvantagepng.com/public-holidays-declared-in-port-moresby-due-to-apec-summit-says-ceo/>
|
|
143
146
|
|
|
144
|
-
|
|
147
|
+
Starting from 2021 afterwards all state funerals are given special public holidays, though only
|
|
148
|
+
some are day-off nationwide.
|
|
145
149
|
"""
|
|
146
150
|
|
|
147
151
|
# National Day of Mourning for Sir Michael Somare.
|
holidays/countries/paraguay.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,15 +19,16 @@ from holidays.holiday_base import HolidayBase
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class Paraguay(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
22
|
-
"""
|
|
22
|
+
"""Paraguay holidays.
|
|
23
|
+
|
|
23
24
|
References:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
* [Ley 8/1990](https://www.bacn.gov.py/leyes-paraguayas/2358/ley-n-8--por-la-cual-se-determinan-los-feriados-de-la-republica)
|
|
26
|
+
* [Ley 715/1995](https://www.bacn.gov.py/leyes-paraguayas/792/ley-n-715--amplia-la-ley-no-0890-)
|
|
27
|
+
* [Ley 1.601/2000](https://www.bacn.gov.py/leyes-paraguayas/1677/ley-n-1601--modifica-el-articulo-1-de-la-ley-no-71595-que-amplia-la-ley-n-0890-por-la-cual-se-determinan-los-feriados-de-la-republica)
|
|
28
|
+
* [Ley 1.723/2001](https://www.bacn.gov.py/leyes-paraguayas/634/ley-n-1723--autoriza-al-poder-ejecutivo-a-trasladar-los-feriados-nacionales-al-dia-lunes)
|
|
29
|
+
* [Ley 4.531/2011](https://www.bacn.gov.py/leyes-paraguayas/3831/ley-n-4531-restablece-el-dia-14-de-mayo-de-cada-ano-como-feriado-nacional)
|
|
30
|
+
* <https://es.wikipedia.org/wiki/Anexo:D%C3%ADas_festivos_en_Paraguay>
|
|
31
|
+
* <http://www.calendarioparaguay.com/>
|
|
31
32
|
"""
|
|
32
33
|
|
|
33
34
|
country = "PY"
|
holidays/countries/peru.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 Peru(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
20
|
-
"""
|
|
21
|
-
Peru holidays.
|
|
20
|
+
"""Peru holidays.
|
|
22
21
|
|
|
23
22
|
References:
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
* <https://www.gob.pe/feriados>
|
|
24
|
+
* <https://es.wikipedia.org/wiki/Anexo:Días_feriados_en_el_Perú>
|
|
26
25
|
"""
|
|
27
26
|
|
|
28
27
|
country = "PE"
|
|
@@ -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
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
from gettext import gettext as tr
|
|
14
14
|
|
|
15
15
|
from holidays.calendars import _CustomChineseHolidays, _CustomIslamicHolidays
|
|
16
|
-
from holidays.calendars.gregorian import JAN, FEB,
|
|
16
|
+
from holidays.calendars.gregorian import JAN, FEB, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
|
|
17
17
|
from holidays.constants import PUBLIC, WORKDAY
|
|
18
18
|
from holidays.groups import (
|
|
19
19
|
ChineseCalendarHolidays,
|
|
@@ -33,24 +33,25 @@ class Philippines(
|
|
|
33
33
|
IslamicHolidays,
|
|
34
34
|
StaticHolidays,
|
|
35
35
|
):
|
|
36
|
-
"""
|
|
37
|
-
Philippines holidays.
|
|
36
|
+
"""Philippines holidays.
|
|
38
37
|
|
|
39
38
|
References:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
39
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_the_Philippines>
|
|
40
|
+
* [Revised Administrative Code of 1987](https://www.officialgazette.gov.ph/1987/07/25/executive-order-no-292-book-ichapter-7-regular-holidays-and-nationwide-special-days/)
|
|
41
|
+
* [Republic Act No. 9177](https://www.officialgazette.gov.ph/2002/11/13/republic-act-no-9177/)
|
|
42
|
+
* [Republic Act No. 9256](https://www.officialgazette.gov.ph/2004/02/25/republic-act-no-9256/)
|
|
43
|
+
* [Republic Act No. 9492](https://www.officialgazette.gov.ph/2007/07/24/republic-act-no-9492/)
|
|
44
|
+
* [Republic Act No. 9645](https://www.officialgazette.gov.ph/2009/06/12/republic-act-no-9645/)
|
|
45
|
+
* [Republic Act No. 9849](https://www.officialgazette.gov.ph/2009/12/11/republic-act-no-9849/)
|
|
46
|
+
* [Republic Act No. 10966](https://www.officialgazette.gov.ph/2017/12/28/republic-act-no-10966/)
|
|
47
|
+
* [Proclamation No. 944/2020](https://www.officialgazette.gov.ph/2020/05/19/proclamation-no-944-s-2020/)
|
|
48
|
+
* [Proclamation No. 985/2020](https://www.officialgazette.gov.ph/2020/07/29/proclamation-no-985-s-2020/)
|
|
49
|
+
* [Proclamation No. 90/2022](https://www.officialgazette.gov.ph/2022/11/09/proclamation-no-90-s-2022/)
|
|
50
|
+
* [Proclamation No. 665/2024](https://www.officialgazette.gov.ph/2024/08/15/proclamation-no-665-s-2024/)
|
|
51
|
+
* [Proclamation No. 729/2024](https://www.officialgazette.gov.ph/2024/10/30/proclamation-no-729-s-2024/)
|
|
52
|
+
* [Nationwide holidays 2018-2025](https://www.officialgazette.gov.ph/nationwide-holidays/2018/)
|
|
53
|
+
* [2025 Eid'l Fitr and Eid'l Adha Tentative Date](https://melbournepcg.org/?page_id=9779)
|
|
54
|
+
* [Proclamation No. 839/2025](https://www.officialgazette.gov.ph/2025/03/20/proclamation-no-839-s-2025/)
|
|
54
55
|
"""
|
|
55
56
|
|
|
56
57
|
country = "PH"
|
|
@@ -63,8 +64,10 @@ class Philippines(
|
|
|
63
64
|
|
|
64
65
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
65
66
|
"""
|
|
66
|
-
:
|
|
67
|
-
|
|
67
|
+
Args:
|
|
68
|
+
islamic_show_estimated:
|
|
69
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
70
|
+
if holiday date is estimated.
|
|
68
71
|
"""
|
|
69
72
|
ChineseCalendarHolidays.__init__(self, cls=PhilippinesChineseHolidays)
|
|
70
73
|
ChristianHolidays.__init__(self)
|
|
@@ -145,6 +148,7 @@ class Philippines(
|
|
|
145
148
|
dates_obs = {
|
|
146
149
|
2008: (DEC, 1),
|
|
147
150
|
2010: (NOV, 29),
|
|
151
|
+
2023: (NOV, 27),
|
|
148
152
|
}
|
|
149
153
|
# Bonifacio Day.
|
|
150
154
|
self._add_holiday(tr("Bonifacio Day"), dates_obs.get(self._year, (NOV, 30)))
|
|
@@ -258,7 +262,7 @@ class PhilippinesIslamicHolidays(_CustomIslamicHolidays):
|
|
|
258
262
|
2022: (MAY, 3),
|
|
259
263
|
2023: (APR, 21),
|
|
260
264
|
2024: (APR, 10),
|
|
261
|
-
2025: (
|
|
265
|
+
2025: (APR, 1),
|
|
262
266
|
}
|
|
263
267
|
|
|
264
268
|
|
holidays/countries/poland.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 Poland(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
21
|
-
"""
|
|
21
|
+
"""Poland holidays.
|
|
22
|
+
|
|
22
23
|
References:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Poland>
|
|
25
|
+
* <https://pl.wikipedia.org/wiki/Dni_wolne_od_pracy_w_Polsce>
|
|
26
|
+
* <https://isap.sejm.gov.pl/isap.nsf/DocDetails.xsp?id=WDU20240001965>
|
|
26
27
|
"""
|
|
27
28
|
|
|
28
29
|
country = "PL"
|
holidays/countries/portugal.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,22 +18,20 @@ from holidays.holiday_base import HolidayBase
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Portugal(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
21
|
-
"""
|
|
22
|
-
A subclass of :py:class:`HolidayBase` representing public holidays
|
|
23
|
-
in Portugal.
|
|
21
|
+
"""Portugal holidays.
|
|
24
22
|
|
|
25
23
|
References:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Portugal>
|
|
25
|
+
* [Labour Day](https://www.e-konomista.pt/dia-do-trabalhador/)
|
|
26
|
+
* Portugal Day - Decreto 17.171
|
|
27
|
+
* Restoration of Independence Day - Gazeta de Lisboa, 8 de Dezembro
|
|
28
|
+
de 1823 (n.º 290), pp. 1789 e 1790
|
|
29
|
+
* Azores:
|
|
30
|
+
* <https://files.dre.pt/1s/1980/08/19200/23052305.pdf>
|
|
31
|
+
* Madeira:
|
|
32
|
+
* <https://files.dre.pt/1s/1979/11/25900/28782878.pdf>
|
|
33
|
+
* <https://files.dre.pt/1s/1989/02/02800/04360436.pdf>
|
|
34
|
+
* <https://files.dre.pt/1s/2002/11/258a00/71837183.pdf>
|
|
37
35
|
"""
|
|
38
36
|
|
|
39
37
|
country = "PT"
|
|
@@ -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 HolidaysPR(US):
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
"""Puerto Rico 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 = "PR"
|
|
23
25
|
supported_categories = (GOVERNMENT, PUBLIC, UNOFFICIAL)
|