holidays 0.69__py3-none-any.whl → 0.71__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 +10 -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 +7 -10
- holidays/countries/french_southern_territories.py +53 -0
- 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 +29 -19
- 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/oman.py +185 -0
- holidays/countries/pakistan.py +48 -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/sierra_leone.py +149 -0
- 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 +39 -47
- holidays/countries/spain.py +25 -24
- holidays/countries/sri_lanka.py +46 -42
- holidays/countries/suriname.py +227 -0
- holidays/countries/sweden.py +20 -19
- holidays/countries/switzerland.py +6 -5
- holidays/countries/taiwan.py +52 -49
- 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 +22 -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 +393 -245
- holidays/ical.py +228 -0
- holidays/locale/ar/LC_MESSAGES/OM.mo +0 -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_SL/LC_MESSAGES/SL.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/OM.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/SL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/SR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TF.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/fr/LC_MESSAGES/TF.mo +0 -0
- holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/nl/LC_MESSAGES/SR.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/uk/LC_MESSAGES/TF.mo +0 -0
- holidays/locale/ur_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/mixins.py +2 -2
- holidays/observed_holiday_base.py +10 -3
- holidays/registry.py +10 -1
- holidays/utils.py +203 -151
- holidays/version.py +2 -2
- holidays-0.71.dist-info/METADATA +1432 -0
- {holidays-0.69.dist-info → holidays-0.71.dist-info}/RECORD +248 -217
- {holidays-0.69.dist-info → holidays-0.71.dist-info}/WHEEL +1 -1
- holidays-0.69.dist-info/AUTHORS → holidays-0.71.dist-info/licenses/AUTHORS.md +9 -2
- {holidays-0.69.dist-info → holidays-0.71.dist-info/licenses}/LICENSE +1 -1
- holidays-0.69.dist-info/METADATA +0 -1085
- {holidays-0.69.dist-info → holidays-0.71.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,185 @@
|
|
|
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 (
|
|
17
|
+
JAN,
|
|
18
|
+
FEB,
|
|
19
|
+
MAR,
|
|
20
|
+
APR,
|
|
21
|
+
MAY,
|
|
22
|
+
JUN,
|
|
23
|
+
JUL,
|
|
24
|
+
AUG,
|
|
25
|
+
SEP,
|
|
26
|
+
OCT,
|
|
27
|
+
NOV,
|
|
28
|
+
THU,
|
|
29
|
+
FRI,
|
|
30
|
+
SAT,
|
|
31
|
+
_timedelta,
|
|
32
|
+
)
|
|
33
|
+
from holidays.groups import IslamicHolidays
|
|
34
|
+
from holidays.holiday_base import HolidayBase
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class Oman(HolidayBase, IslamicHolidays):
|
|
38
|
+
"""Oman holidays.
|
|
39
|
+
|
|
40
|
+
References:
|
|
41
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Oman>
|
|
42
|
+
* [Independence](https://www.omaninfo.om/pages/175/show/572)
|
|
43
|
+
* [Weekend](https://abnnews.com/the-sultanate-of-oman-changes-weekend-days-from-01-may-2013/)
|
|
44
|
+
* [Decree 56/2020](https://decree.om/2020/rd20200056/)
|
|
45
|
+
* [Decree 88/2022](https://decree.om/2022/rd20220088/)
|
|
46
|
+
* [Decree 15/2025 (National day is moved)](https://decree.om/2025/rd20250015/)
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
country = "OM"
|
|
50
|
+
default_language = "ar"
|
|
51
|
+
# %s (estimated).
|
|
52
|
+
estimated_label = tr("%s (مُقدَّر)")
|
|
53
|
+
start_year = 1970
|
|
54
|
+
supported_languages = ("ar", "en_US")
|
|
55
|
+
|
|
56
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
57
|
+
"""
|
|
58
|
+
Args:
|
|
59
|
+
islamic_show_estimated:
|
|
60
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
61
|
+
if holiday date is estimated.
|
|
62
|
+
"""
|
|
63
|
+
IslamicHolidays.__init__(
|
|
64
|
+
self, cls=OmanIslamicHolidays, show_estimated=islamic_show_estimated
|
|
65
|
+
)
|
|
66
|
+
super().__init__(*args, **kwargs)
|
|
67
|
+
|
|
68
|
+
def _populate_public_holidays(self):
|
|
69
|
+
# Oman switches from THU-FRI to FRI-SAT on May 1, 2013.
|
|
70
|
+
self.weekend = {THU, FRI} if self._year <= 2013 else {FRI, SAT}
|
|
71
|
+
|
|
72
|
+
if self._year >= 2020:
|
|
73
|
+
# Sultan's Accession Day.
|
|
74
|
+
self._add_holiday_jan_11(tr("اليوم الوطني لتولي السلطان"))
|
|
75
|
+
|
|
76
|
+
if self._year <= 2019:
|
|
77
|
+
# Renaissance Day.
|
|
78
|
+
self._add_holiday_jul_23(tr("يوم النهضة"))
|
|
79
|
+
|
|
80
|
+
if self._year >= 2020:
|
|
81
|
+
# National Day.
|
|
82
|
+
name = tr("يوم وطني")
|
|
83
|
+
if self._year <= 2024:
|
|
84
|
+
self._add_holiday_nov_18(name)
|
|
85
|
+
self._add_holiday_nov_19(name)
|
|
86
|
+
else:
|
|
87
|
+
self._add_holiday_nov_20(name)
|
|
88
|
+
self._add_holiday_nov_21(name)
|
|
89
|
+
|
|
90
|
+
# Islamic New Year.
|
|
91
|
+
self._add_islamic_new_year_day(tr("رأس السنة الهجرية"))
|
|
92
|
+
|
|
93
|
+
# Prophet's Birthday.
|
|
94
|
+
self._add_mawlid_day(tr("مولد النبي"))
|
|
95
|
+
|
|
96
|
+
# Isra' and Mi'raj.
|
|
97
|
+
self._add_isra_and_miraj_day(tr("الإسراء والمعراج"))
|
|
98
|
+
|
|
99
|
+
# Eid al-Fitr.
|
|
100
|
+
name = tr("عيد الفطر")
|
|
101
|
+
self._add_eid_al_fitr_day(name)
|
|
102
|
+
self._add_eid_al_fitr_day_two(name)
|
|
103
|
+
self._add_eid_al_fitr_day_three(name)
|
|
104
|
+
for dt in self._add_holiday_29_ramadan(name):
|
|
105
|
+
if _timedelta(dt, +1) not in self:
|
|
106
|
+
self._add_eid_al_fitr_eve(name)
|
|
107
|
+
|
|
108
|
+
# Eid al-Adha.
|
|
109
|
+
name = tr("عيد الأضحى")
|
|
110
|
+
self._add_arafah_day(name)
|
|
111
|
+
self._add_eid_al_adha_day(name)
|
|
112
|
+
self._add_eid_al_adha_day_two(name)
|
|
113
|
+
self._add_eid_al_adha_day_three(name)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class OM(Oman):
|
|
117
|
+
pass
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
class OMN(Oman):
|
|
121
|
+
pass
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
class OmanIslamicHolidays(_CustomIslamicHolidays):
|
|
125
|
+
# https://www.timeanddate.com/holidays/oman/muharram-new-year
|
|
126
|
+
HIJRI_NEW_YEAR_DATES = {
|
|
127
|
+
2018: (SEP, 11),
|
|
128
|
+
2019: (SEP, 1),
|
|
129
|
+
2020: (AUG, 21),
|
|
130
|
+
2021: (AUG, 10),
|
|
131
|
+
2022: (JUL, 30),
|
|
132
|
+
2023: (JUL, 20),
|
|
133
|
+
2024: (JUL, 7),
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
# https://www.timeanddate.com/holidays/oman/prophet-birthday
|
|
137
|
+
MAWLID_DATES = {
|
|
138
|
+
2018: (NOV, 20),
|
|
139
|
+
2019: (NOV, 9),
|
|
140
|
+
2020: (OCT, 29),
|
|
141
|
+
2021: (OCT, 19),
|
|
142
|
+
2022: (OCT, 9),
|
|
143
|
+
2023: (SEP, 28),
|
|
144
|
+
2024: (SEP, 15),
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
# https://www.timeanddate.com/holidays/oman/isra-miraj
|
|
148
|
+
ISRA_AND_MIRAJ_DATES = {
|
|
149
|
+
2018: (APR, 13),
|
|
150
|
+
2019: (APR, 3),
|
|
151
|
+
2020: (MAR, 22),
|
|
152
|
+
2021: (MAR, 11),
|
|
153
|
+
2022: (MAR, 1),
|
|
154
|
+
2023: (FEB, 19),
|
|
155
|
+
2024: (FEB, 8),
|
|
156
|
+
2025: (JAN, 27),
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
# https://www.timeanddate.com/holidays/oman/eid-al-adha
|
|
160
|
+
EID_AL_ADHA_DATES = {
|
|
161
|
+
2019: (AUG, 11),
|
|
162
|
+
2020: (JUL, 31),
|
|
163
|
+
2021: (JUL, 20),
|
|
164
|
+
2022: (JUL, 9),
|
|
165
|
+
2023: (JUN, 28),
|
|
166
|
+
2024: (JUN, 17),
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
# https://www.timeanddate.com/holidays/oman/eid-al-fitr
|
|
170
|
+
EID_AL_FITR_DATES = {
|
|
171
|
+
2019: (JUN, 4),
|
|
172
|
+
2020: (MAY, 24),
|
|
173
|
+
2021: (MAY, 13),
|
|
174
|
+
2022: (MAY, 2),
|
|
175
|
+
2023: (APR, 22),
|
|
176
|
+
2024: (APR, 10),
|
|
177
|
+
2025: (MAR, 31),
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
# https://www.timeanddate.com/holidays/oman/ramadan-begins
|
|
181
|
+
RAMADAN_BEGINNING_DATES = {
|
|
182
|
+
2023: (MAR, 23),
|
|
183
|
+
2024: (MAR, 12),
|
|
184
|
+
2025: (MAR, 1),
|
|
185
|
+
}
|
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,28 @@ 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
|
+
* [Public and optional holidays](https://cabinet.gov.pk/Detail/OTE2ODBiYmItZmI0MS00NDAwLWE5NGUtYmE1MGVjYzllMzAz)
|
|
28
|
+
* [No.10-01/2024-Min-II](https://cabinet.gov.pk/SiteImage/Misc/files/Holidays/28-5-24.pdf)
|
|
29
|
+
"""
|
|
30
|
+
|
|
20
31
|
country = "PK"
|
|
32
|
+
default_language = "en_PK"
|
|
33
|
+
# %s (estimated).
|
|
34
|
+
estimated_label = tr("%s (estimated)")
|
|
21
35
|
start_year = 1948
|
|
36
|
+
supported_languages = ("en_PK", "en_US", "ur_PK")
|
|
22
37
|
|
|
23
38
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
24
39
|
"""
|
|
25
|
-
:
|
|
26
|
-
|
|
40
|
+
Args:
|
|
41
|
+
islamic_show_estimated:
|
|
42
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
43
|
+
if holiday date is estimated.
|
|
27
44
|
"""
|
|
28
45
|
InternationalHolidays.__init__(self)
|
|
29
46
|
IslamicHolidays.__init__(
|
|
@@ -32,41 +49,49 @@ class Pakistan(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
32
49
|
super().__init__(*args, **kwargs)
|
|
33
50
|
|
|
34
51
|
def _populate_public_holidays(self):
|
|
35
|
-
# Kashmir Solidarity Day.
|
|
36
52
|
if self._year >= 1990:
|
|
37
|
-
|
|
53
|
+
# Kashmir Solidarity Day.
|
|
54
|
+
self._add_holiday_feb_5(tr("Kashmir Solidarity Day"))
|
|
38
55
|
|
|
39
|
-
# Pakistan Day.
|
|
40
56
|
if self._year >= 1956:
|
|
41
|
-
|
|
57
|
+
# Pakistan Day.
|
|
58
|
+
self._add_holiday_mar_23(tr("Pakistan Day"))
|
|
42
59
|
|
|
43
|
-
# Labour Day.
|
|
44
60
|
if self._year >= 1972:
|
|
45
|
-
|
|
61
|
+
# Labor Day.
|
|
62
|
+
self._add_labor_day(tr("Labour Day"))
|
|
63
|
+
|
|
64
|
+
if self._year >= 2024:
|
|
65
|
+
# Youm-e-Takbeer.
|
|
66
|
+
self._add_holiday_may_28(tr("Youm-e-Takbeer"))
|
|
46
67
|
|
|
47
68
|
# Independence Day.
|
|
48
|
-
self._add_holiday_aug_14("Independence Day")
|
|
69
|
+
self._add_holiday_aug_14(tr("Independence Day"))
|
|
49
70
|
|
|
50
|
-
# Iqbal Day.
|
|
51
71
|
if self._year <= 2014 or self._year >= 2022:
|
|
52
|
-
|
|
72
|
+
# Iqbal Day.
|
|
73
|
+
self._add_holiday_nov_9(tr("Iqbal Day"))
|
|
53
74
|
|
|
54
75
|
# Quaid-e-Azam Day.
|
|
55
|
-
self._add_holiday_dec_25("Quaid-e-Azam Day")
|
|
76
|
+
self._add_holiday_dec_25(tr("Quaid-e-Azam Day"))
|
|
56
77
|
|
|
57
|
-
|
|
78
|
+
# Eid al-Fitr.
|
|
79
|
+
name = tr("Eid-ul-Fitr")
|
|
58
80
|
self._add_eid_al_fitr_day(name)
|
|
59
81
|
self._add_eid_al_fitr_day_two(name)
|
|
60
82
|
self._add_eid_al_fitr_day_three(name)
|
|
61
83
|
|
|
62
|
-
|
|
84
|
+
# Eid al-Adha.
|
|
85
|
+
name = tr("Eid-ul-Adha")
|
|
63
86
|
self._add_eid_al_adha_day(name)
|
|
64
87
|
self._add_eid_al_adha_day_two(name)
|
|
65
88
|
self._add_eid_al_adha_day_three(name)
|
|
66
89
|
|
|
67
|
-
|
|
90
|
+
# Prophet's Birthday.
|
|
91
|
+
self._add_mawlid_day(tr("Eid Milad-un-Nabi"))
|
|
68
92
|
|
|
69
|
-
|
|
93
|
+
# Ashura.
|
|
94
|
+
name = tr("Ashura")
|
|
70
95
|
self._add_ashura_eve(name)
|
|
71
96
|
self._add_ashura_day(name)
|
|
72
97
|
|
|
@@ -101,6 +126,8 @@ class PakistanIslamicHolidays(_CustomIslamicHolidays):
|
|
|
101
126
|
2020: (AUG, 29),
|
|
102
127
|
2021: (AUG, 18),
|
|
103
128
|
2022: (AUG, 9),
|
|
129
|
+
2023: (JUL, 28),
|
|
130
|
+
2024: (JUL, 16),
|
|
104
131
|
}
|
|
105
132
|
|
|
106
133
|
# https://www.timeanddate.com/holidays/pakistan/eid-ul-azha
|
|
@@ -124,6 +151,7 @@ class PakistanIslamicHolidays(_CustomIslamicHolidays):
|
|
|
124
151
|
2021: (JUL, 21),
|
|
125
152
|
2022: (JUL, 10),
|
|
126
153
|
2023: (JUN, 29),
|
|
154
|
+
2024: (JUN, 17),
|
|
127
155
|
}
|
|
128
156
|
|
|
129
157
|
# https://www.timeanddate.com/holidays/pakistan/eid-ul-fitr-1
|
|
@@ -148,6 +176,7 @@ class PakistanIslamicHolidays(_CustomIslamicHolidays):
|
|
|
148
176
|
2022: (MAY, 3),
|
|
149
177
|
2023: (APR, 22),
|
|
150
178
|
2024: (APR, 10),
|
|
179
|
+
2025: (MAR, 31),
|
|
151
180
|
}
|
|
152
181
|
|
|
153
182
|
# https://www.timeanddate.com/holidays/pakistan/eid-milad-un-nabi
|
|
@@ -170,4 +199,6 @@ class PakistanIslamicHolidays(_CustomIslamicHolidays):
|
|
|
170
199
|
2020: (OCT, 30),
|
|
171
200
|
2021: (OCT, 19),
|
|
172
201
|
2022: (OCT, 9),
|
|
202
|
+
2023: (SEP, 29),
|
|
203
|
+
2024: (SEP, 17),
|
|
173
204
|
}
|
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
|
|