holidays 0.68__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 +2 -1
- holidays/calendars/balinese_saka.py +112 -0
- 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 +866 -2
- 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 +3 -1
- holidays/countries/__init__.py +7 -1
- holidays/countries/afghanistan.py +17 -7
- holidays/countries/albania.py +16 -7
- holidays/countries/algeria.py +14 -10
- holidays/countries/american_samoa.py +12 -6
- 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 +30 -19
- holidays/countries/bahamas.py +13 -11
- holidays/countries/bahrain.py +14 -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 +21 -11
- holidays/countries/botswana.py +8 -6
- holidays/countries/brazil.py +8 -7
- holidays/countries/brunei.py +56 -62
- holidays/countries/bulgaria.py +9 -10
- holidays/countries/burkina_faso.py +14 -5
- holidays/countries/burundi.py +17 -12
- holidays/countries/cambodia.py +15 -24
- holidays/countries/cameroon.py +16 -7
- holidays/countries/canada.py +13 -12
- holidays/countries/chad.py +15 -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 +11 -3
- holidays/countries/dominica.py +18 -16
- holidays/countries/dominican_republic.py +6 -4
- holidays/countries/ecuador.py +5 -4
- holidays/countries/egypt.py +10 -11
- holidays/countries/el_salvador.py +6 -5
- holidays/countries/estonia.py +3 -1
- holidays/countries/eswatini.py +6 -4
- holidays/countries/ethiopia.py +26 -11
- holidays/countries/fiji.py +183 -0
- holidays/countries/finland.py +11 -10
- holidays/countries/france.py +6 -9
- holidays/countries/gabon.py +17 -8
- holidays/countries/georgia.py +7 -7
- holidays/countries/germany.py +11 -11
- holidays/countries/ghana.py +14 -6
- holidays/countries/greece.py +4 -5
- holidays/countries/greenland.py +5 -6
- holidays/countries/guam.py +12 -6
- 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 +49 -60
- holidays/countries/hungary.py +26 -23
- holidays/countries/iceland.py +5 -4
- holidays/countries/india.py +494 -174
- holidays/countries/indonesia.py +68 -108
- holidays/countries/iran.py +18 -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 +13 -6
- holidays/countries/kazakhstan.py +72 -51
- holidays/countries/kenya.py +28 -18
- holidays/countries/kuwait.py +14 -7
- holidays/countries/kyrgyzstan.py +11 -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 +480 -0
- holidays/countries/madagascar.py +5 -4
- holidays/countries/malawi.py +6 -4
- holidays/countries/malaysia.py +30 -18
- holidays/countries/maldives.py +14 -7
- holidays/countries/malta.py +10 -19
- holidays/countries/marshall_islands.py +6 -4
- holidays/countries/mauritania.py +13 -6
- holidays/countries/mexico.py +8 -7
- holidays/countries/moldova.py +6 -4
- holidays/countries/monaco.py +6 -4
- holidays/countries/montenegro.py +16 -7
- holidays/countries/morocco.py +13 -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 +13 -5
- holidays/countries/north_macedonia.py +13 -5
- holidays/countries/northern_mariana_islands.py +12 -6
- holidays/countries/norway.py +15 -15
- holidays/countries/pakistan.py +48 -18
- 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 +32 -18
- holidays/countries/poland.py +7 -6
- holidays/countries/portugal.py +13 -15
- holidays/countries/puerto_rico.py +12 -6
- 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 +15 -15
- holidays/countries/serbia.py +3 -4
- holidays/countries/seychelles.py +22 -26
- holidays/countries/singapore.py +33 -38
- 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 +31 -24
- holidays/countries/sri_lanka.py +52 -42
- holidays/countries/sweden.py +20 -19
- holidays/countries/switzerland.py +6 -5
- holidays/countries/taiwan.py +230 -31
- holidays/countries/tanzania.py +34 -27
- holidays/countries/thailand.py +134 -142
- holidays/countries/timor_leste.py +38 -17
- holidays/countries/tonga.py +46 -42
- holidays/countries/tunisia.py +9 -3
- holidays/countries/turkey.py +17 -9
- holidays/countries/tuvalu.py +12 -11
- holidays/countries/ukraine.py +54 -54
- holidays/countries/united_arab_emirates.py +43 -30
- holidays/countries/united_kingdom.py +7 -6
- holidays/countries/united_states.py +130 -86
- holidays/countries/united_states_minor_outlying_islands.py +12 -6
- holidays/countries/united_states_virgin_islands.py +12 -6
- holidays/countries/uruguay.py +10 -9
- holidays/countries/uzbekistan.py +16 -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 +2 -1
- holidays/groups/balinese_saka.py +45 -0
- holidays/groups/buddhist.py +1 -1
- holidays/groups/chinese.py +69 -4
- 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 +256 -1
- holidays/groups/international.py +1 -1
- holidays/groups/islamic.py +17 -3
- 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 +410 -273
- holidays/ical.py +228 -0
- holidays/locale/ar_QA/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/de/LC_MESSAGES/PL.mo +0 -0
- holidays/locale/en_CI/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_HK/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/en_IN/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_MO/LC_MESSAGES/MO.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/HK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/MO.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/en_US/LC_MESSAGES/TW.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_MO/LC_MESSAGES/MO.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/HK.mo +0 -0
- holidays/locale/th/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/ur_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/zh_HK/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/zh_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/zh_TW/LC_MESSAGES/TW.mo +0 -0
- holidays/mixins.py +2 -2
- holidays/observed_holiday_base.py +5 -2
- holidays/registry.py +7 -1
- holidays/utils.py +151 -151
- holidays/version.py +2 -2
- holidays-0.70.dist-info/METADATA +1404 -0
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/RECORD +253 -222
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/WHEEL +1 -1
- holidays-0.68.dist-info/AUTHORS → holidays-0.70.dist-info/licenses/AUTHORS.md +7 -2
- {holidays-0.68.dist-info → holidays-0.70.dist-info/licenses}/LICENSE +1 -1
- holidays-0.68.dist-info/METADATA +0 -1080
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/top_level.txt +0 -0
|
@@ -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 typing import Union
|
|
14
14
|
|
|
15
15
|
from holidays.calendars.gregorian import MON, TUE, WED, THU, FRI, SAT, SUN
|
|
16
|
-
from holidays.constants import PUBLIC, UNOFFICIAL
|
|
16
|
+
from holidays.constants import GOVERNMENT, PUBLIC, UNOFFICIAL
|
|
17
17
|
from holidays.groups import ChristianHolidays, InternationalHolidays
|
|
18
18
|
from holidays.observed_holiday_base import (
|
|
19
19
|
ObservedHolidayBase,
|
|
@@ -32,60 +32,59 @@ GA_IN_WASHINGTON_BIRTHDAY = ObservedRule(
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
35
|
-
"""
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
- https://asbar.org/code-annotated/1-0501-public-holidays/
|
|
35
|
+
"""United States of America (the) holidays.
|
|
36
|
+
|
|
37
|
+
References:
|
|
38
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_the_United_States>
|
|
39
|
+
* [Federal holidays](https://www.opm.gov/policy-data-oversight/pay-leave/federal-holidays/)
|
|
40
|
+
* Washington's Birthday:
|
|
41
|
+
* [AK](https://doa.alaska.gov/calendar/)
|
|
42
|
+
* [AL](https://admincode.legislature.state.al.us/administrative-code/670-X-12-.01)
|
|
43
|
+
* [AR](https://arkleg.state.ar.us/Home/FTPDocument?path=/ACTS/2001/Public/ACT304.pdf)
|
|
44
|
+
* [AZ](https://www.azleg.gov/ars/1/00301.htm)
|
|
45
|
+
* [CA](https://www.sos.ca.gov/state-holidays)
|
|
46
|
+
* [CO](https://leg.colorado.gov/sites/default/files/images/olls/crs2023-title-24.pdf)
|
|
47
|
+
* [GA](https://www.gasupreme.us/court-information/holidays-2/)
|
|
48
|
+
* [HI](https://www.capitol.hawaii.gov/hrscurrent/Vol01_Ch0001-0042F/HRS0008/HRS_0008-0001.htm)
|
|
49
|
+
* [ID](https://idaho.gov/government/state-holidays/)
|
|
50
|
+
* IN:
|
|
51
|
+
* <https://digital.statelib.lib.in.us/infoexpress/holidays.aspx>
|
|
52
|
+
* <https://www.in.gov/spd/benefits/state-holidays/>
|
|
53
|
+
* [MD](https://msa.maryland.gov/msa/mdmanual/01glance/html/holidayl.html)
|
|
54
|
+
* [MI](https://www.michigan.gov/som/government/state-holidays)
|
|
55
|
+
* [MN](https://www.revisor.mn.gov/statutes/cite/645.44)
|
|
56
|
+
* [MT](https://archive.legmt.gov/bills/mca/title_0010/chapter_0010/part_0020/section_0160/0010-0010-0020-0160.html)
|
|
57
|
+
* [NJ](https://nj.gov/nj/about/facts/holidays/)
|
|
58
|
+
* [OH](https://codes.ohio.gov/ohio-revised-code/section-1.14)
|
|
59
|
+
* [OK](https://oklahoma.gov/omes/divisions/human-capital-management/employee-benefits/leave-holidays/holidays.html)
|
|
60
|
+
* [OR](https://www.oregonlegislature.gov/bills_laws/ors/ors187.html)
|
|
61
|
+
* [PA](https://www.legis.state.pa.us/WU01/LI/LI/US/PDF/1893/0/0138..PDF)
|
|
62
|
+
* [PR](https://en.wikipedia.org/wiki/Public_holidays_in_Puerto_Rico)
|
|
63
|
+
* [SC](https://www.scstatehouse.gov/code/t53c005.php)
|
|
64
|
+
* [TN](https://www.tn.gov/about-tn/state-holidays.html)
|
|
65
|
+
* [TX](https://www.tsl.texas.gov/ref/abouttx/holidays)
|
|
66
|
+
* [UT](https://le.utah.gov/xcode/Title63G/Chapter1/63G-1-S301.html)
|
|
67
|
+
* [VA](https://law.lis.virginia.gov/vacode/title2.2/chapter33/section2.2-3300/)
|
|
68
|
+
* [VT](https://legislature.vermont.gov/statutes/section/01/007/00371)
|
|
69
|
+
* [WA](https://app.leg.wa.gov/rcw/default.aspx?cite=1.16.050)
|
|
70
|
+
* [WV](https://code.wvlegislature.gov/2-2-1/)
|
|
71
|
+
* [WY](https://ai.wyo.gov/about-us/state-holidays-and-office-closures)
|
|
72
|
+
* Columbus Day / Indigenous Peoples' Day history:
|
|
73
|
+
* <https://www.pewresearch.org/short-reads/2023/10/05/working-on-columbus-day-or-indigenous-peoples-day-it-depends-on-where-your-job-is/>
|
|
74
|
+
* <https://www.officeholidays.com/holidays/usa/columbus-day-state-guide>
|
|
75
|
+
* <https://en.wikipedia.org/wiki/Indigenous_Peoples%27_Day_(United_States)>
|
|
76
|
+
* <https://www.sos.ri.gov/divisions/civics-and-education/reference-desk/ri-state-holidays>
|
|
77
|
+
* <https://web.archive.org/web/20080831103521/http://www.dpa.ca.gov/personnel-policies/holidays.htm>
|
|
78
|
+
* [Frances Xavier Cabrini Day](https://leg.colorado.gov/sites/default/files/2020a_1031_signed.pdf)
|
|
79
|
+
* Northern Mariana Islands (subdivision MP):
|
|
80
|
+
* <https://governor.gov.mp/archived-news/executive-actions-archive/memorandum-2022-legal-holidays/>
|
|
81
|
+
* <https://webcache.googleusercontent.com/search?q=cache:C17_7FBgPtQJ:https://governor.gov.mp/archived-news/executive-actions-archive/memorandum-2022-legal-holidays/&hl=en&gl=sg&strip=1&vwsrc=0>
|
|
82
|
+
* American Samoa:
|
|
83
|
+
* <https://asbar.org/code-annotated/1-0501-public-holidays/>
|
|
85
84
|
"""
|
|
86
85
|
|
|
87
86
|
country = "US"
|
|
88
|
-
supported_categories = (PUBLIC, UNOFFICIAL)
|
|
87
|
+
supported_categories = (GOVERNMENT, PUBLIC, UNOFFICIAL)
|
|
89
88
|
observed_label = "%s (observed)"
|
|
90
89
|
subdivisions: Union[tuple[()], tuple[str, ...]] = (
|
|
91
90
|
"AK", # Alaska.
|
|
@@ -160,20 +159,35 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
160
159
|
kwargs.setdefault("observed_rule", SAT_TO_PREV_FRI + SUN_TO_NEXT_MON)
|
|
161
160
|
super().__init__(*args, **kwargs)
|
|
162
161
|
|
|
163
|
-
def
|
|
162
|
+
def _populate_common(self, include_federal: bool = False):
|
|
163
|
+
"""
|
|
164
|
+
Populates common US holidays.
|
|
165
|
+
|
|
166
|
+
:param include_federal:
|
|
167
|
+
Whether to include federal-specific holidays.
|
|
168
|
+
"""
|
|
164
169
|
# New Year's Day
|
|
165
170
|
if self._year >= 1871:
|
|
166
171
|
name = "New Year's Day"
|
|
167
172
|
self._add_observed(self._add_new_years_day(name))
|
|
168
173
|
self._add_observed(self._next_year_new_years_day, name=name)
|
|
169
174
|
|
|
175
|
+
if include_federal:
|
|
176
|
+
# Birthday of Martin Luther King, Jr.
|
|
177
|
+
if self._year >= 1986:
|
|
178
|
+
self._add_holiday_3rd_mon_of_jan("Birthday of Martin Luther King, Jr.")
|
|
179
|
+
|
|
180
|
+
# Washington's Birthday
|
|
181
|
+
if self._year >= 1879:
|
|
182
|
+
name = "Washington's Birthday"
|
|
183
|
+
if self._year >= 1971:
|
|
184
|
+
self._add_holiday_3rd_mon_of_feb(name)
|
|
185
|
+
else:
|
|
186
|
+
self._add_holiday_feb_22(name)
|
|
187
|
+
|
|
170
188
|
# Memorial Day
|
|
171
|
-
if self._year >=
|
|
172
|
-
|
|
173
|
-
if self._year >= 1971:
|
|
174
|
-
self._add_holiday_last_mon_of_may(name)
|
|
175
|
-
else:
|
|
176
|
-
self._add_holiday_may_30(name)
|
|
189
|
+
if self._year >= 1971:
|
|
190
|
+
self._add_holiday_last_mon_of_may("Memorial Day")
|
|
177
191
|
|
|
178
192
|
# Juneteenth Day
|
|
179
193
|
if self._year >= 2021:
|
|
@@ -187,6 +201,11 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
187
201
|
if self._year >= 1894:
|
|
188
202
|
self._add_holiday_1st_mon_of_sep("Labor Day")
|
|
189
203
|
|
|
204
|
+
if include_federal:
|
|
205
|
+
# Columbus Day
|
|
206
|
+
if self._year >= 1971:
|
|
207
|
+
self._add_holiday_2nd_mon_of_oct("Columbus Day")
|
|
208
|
+
|
|
190
209
|
# Veterans Day
|
|
191
210
|
if self._year >= 1938:
|
|
192
211
|
name = "Veterans Day" if self._year >= 1954 else "Armistice Day"
|
|
@@ -195,14 +214,21 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
195
214
|
else:
|
|
196
215
|
self._add_observed(self._add_remembrance_day(name))
|
|
197
216
|
|
|
198
|
-
# Thanksgiving
|
|
217
|
+
# Thanksgiving Day
|
|
199
218
|
if self._year >= 1871:
|
|
200
|
-
self._add_holiday_4th_thu_of_nov("Thanksgiving")
|
|
219
|
+
self._add_holiday_4th_thu_of_nov("Thanksgiving Day")
|
|
201
220
|
|
|
202
221
|
# Christmas Day
|
|
203
222
|
if self._year >= 1871:
|
|
204
223
|
self._add_observed(self._add_christmas_day("Christmas Day"))
|
|
205
224
|
|
|
225
|
+
def _populate_public_holidays(self):
|
|
226
|
+
self._populate_common()
|
|
227
|
+
|
|
228
|
+
# Memorial Day
|
|
229
|
+
if 1888 <= self._year <= 1970:
|
|
230
|
+
self._add_holiday_may_30("Memorial Day")
|
|
231
|
+
|
|
206
232
|
def _add_christmas_eve_holiday(self):
|
|
207
233
|
# Christmas Eve
|
|
208
234
|
# If on Friday, observed on Thursday
|
|
@@ -324,11 +350,12 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
324
350
|
self._add_holiday_3rd_mon_of_jan("Martin Luther King, Jr & Robert E. Lee's Birthday")
|
|
325
351
|
|
|
326
352
|
# Washington's Birthday
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
self.
|
|
330
|
-
|
|
331
|
-
|
|
353
|
+
if self._year >= 1879:
|
|
354
|
+
name = "George Washington & Thomas Jefferson's Birthday"
|
|
355
|
+
if self._year >= 1971:
|
|
356
|
+
self._add_holiday_3rd_mon_of_feb(name)
|
|
357
|
+
else:
|
|
358
|
+
self._add_holiday_feb_22(name)
|
|
332
359
|
|
|
333
360
|
# Confederate Memorial Day
|
|
334
361
|
if self._year >= 1866:
|
|
@@ -356,11 +383,12 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
356
383
|
)
|
|
357
384
|
|
|
358
385
|
# Washington's Birthday
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
self.
|
|
362
|
-
|
|
363
|
-
|
|
386
|
+
if self._year >= 1879:
|
|
387
|
+
name = "George Washington's Birthday and Daisy Gatson Bates Day"
|
|
388
|
+
if self._year >= 1971:
|
|
389
|
+
self._add_holiday_3rd_mon_of_feb(name)
|
|
390
|
+
else:
|
|
391
|
+
self._add_holiday_feb_22(name)
|
|
364
392
|
|
|
365
393
|
def _populate_subdiv_as_public_holidays(self):
|
|
366
394
|
# American Samoa Flag Day
|
|
@@ -493,10 +521,11 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
493
521
|
)
|
|
494
522
|
|
|
495
523
|
# Washington's Birthday
|
|
496
|
-
self.
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
524
|
+
if self._year >= 1879:
|
|
525
|
+
self._add_holiday(
|
|
526
|
+
"Washington's Birthday",
|
|
527
|
+
self._get_observed_date(self._christmas_day, rule=GA_IN_WASHINGTON_BIRTHDAY),
|
|
528
|
+
)
|
|
500
529
|
|
|
501
530
|
def _populate_subdiv_gu_public_holidays(self):
|
|
502
531
|
# Guam Discovery Day
|
|
@@ -587,10 +616,11 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
587
616
|
self._add_holiday_1_day_past_4th_thu_of_nov("Lincoln's Birthday")
|
|
588
617
|
|
|
589
618
|
# Washington's Birthday
|
|
590
|
-
self.
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
619
|
+
if self._year >= 1879:
|
|
620
|
+
self._add_holiday(
|
|
621
|
+
"Washington's Birthday",
|
|
622
|
+
self._get_observed_date(self._christmas_day, rule=GA_IN_WASHINGTON_BIRTHDAY),
|
|
623
|
+
)
|
|
594
624
|
|
|
595
625
|
def _populate_subdiv_ks_public_holidays(self):
|
|
596
626
|
# Christmas Eve
|
|
@@ -684,6 +714,14 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
684
714
|
# New Year's Eve
|
|
685
715
|
self._add_observed(self._add_new_years_eve("New Year's Eve"))
|
|
686
716
|
|
|
717
|
+
# Election Day
|
|
718
|
+
if self._year >= 2008 and self._year % 2 == 0:
|
|
719
|
+
self._add_holiday_1_day_past_1st_mon_of_nov("Election Day")
|
|
720
|
+
|
|
721
|
+
# Day after Thanksgiving
|
|
722
|
+
if self._year >= 2017:
|
|
723
|
+
self._add_holiday_1_day_past_4th_thu_of_nov("Day After Thanksgiving")
|
|
724
|
+
|
|
687
725
|
def _populate_subdiv_mn_public_holidays(self):
|
|
688
726
|
# Washington's Birthday
|
|
689
727
|
if self._year >= 1971:
|
|
@@ -872,7 +910,8 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
872
910
|
self._add_epiphany_day("Epiphany")
|
|
873
911
|
|
|
874
912
|
# Washington's Birthday
|
|
875
|
-
self.
|
|
913
|
+
if self._year >= 1971:
|
|
914
|
+
self._add_holiday_3rd_mon_of_feb("Presidents' Day")
|
|
876
915
|
|
|
877
916
|
# Emancipation Day
|
|
878
917
|
self._add_observed(self._add_holiday_mar_22("Emancipation Day"), rule=SUN_TO_NEXT_MON)
|
|
@@ -1015,11 +1054,12 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
1015
1054
|
self._add_epiphany_day("Three Kings Day")
|
|
1016
1055
|
|
|
1017
1056
|
# Washington's Birthday
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
self.
|
|
1021
|
-
|
|
1022
|
-
|
|
1057
|
+
if self._year >= 1879:
|
|
1058
|
+
name = "Presidents' Day"
|
|
1059
|
+
if self._year >= 1971:
|
|
1060
|
+
self._add_holiday_3rd_mon_of_feb(name)
|
|
1061
|
+
else:
|
|
1062
|
+
self._add_holiday_feb_22(name)
|
|
1023
1063
|
|
|
1024
1064
|
# Transfer Day
|
|
1025
1065
|
self._add_holiday_mar_31("Transfer Day")
|
|
@@ -1102,6 +1142,10 @@ class UnitedStates(ObservedHolidayBase, ChristianHolidays, InternationalHolidays
|
|
|
1102
1142
|
if self._year >= 1971:
|
|
1103
1143
|
self._add_holiday_3rd_mon_of_feb("President's Day")
|
|
1104
1144
|
|
|
1145
|
+
def _populate_government_holidays(self):
|
|
1146
|
+
# Federal holidays in the United States.
|
|
1147
|
+
self._populate_common(include_federal=True)
|
|
1148
|
+
|
|
1105
1149
|
def _populate_unofficial_holidays(self):
|
|
1106
1150
|
# Very common celebrated cultural days, but no official observance.
|
|
1107
1151
|
# Due to its nature, no in-lieus are observed.
|
|
@@ -4,29 +4,35 @@
|
|
|
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 holidays.constants import PUBLIC, UNOFFICIAL
|
|
13
|
+
from holidays.constants import GOVERNMENT, PUBLIC, UNOFFICIAL
|
|
14
14
|
from holidays.countries.united_states import US
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class HolidaysUM(US):
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
"""United States Minor Outlying Islands 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 = "UM"
|
|
23
|
-
supported_categories = (PUBLIC, UNOFFICIAL)
|
|
25
|
+
supported_categories = (GOVERNMENT, PUBLIC, UNOFFICIAL)
|
|
24
26
|
subdivisions = () # Override US subdivisions.
|
|
25
27
|
|
|
26
28
|
def _populate_public_holidays(self) -> None:
|
|
27
29
|
self.subdiv = "UM"
|
|
28
30
|
super()._populate_public_holidays()
|
|
29
31
|
|
|
32
|
+
def _populate_government_holidays(self) -> None:
|
|
33
|
+
self.subdiv = "UM"
|
|
34
|
+
super()._populate_government_holidays()
|
|
35
|
+
|
|
30
36
|
def _populate_unofficial_holidays(self) -> None:
|
|
31
37
|
self.subdiv = "UM"
|
|
32
38
|
super()._populate_unofficial_holidays()
|
|
@@ -4,29 +4,35 @@
|
|
|
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 holidays.constants import PUBLIC, UNOFFICIAL
|
|
13
|
+
from holidays.constants import GOVERNMENT, PUBLIC, UNOFFICIAL
|
|
14
14
|
from holidays.countries.united_states import US
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class HolidaysVI(US):
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
"""United States Virgin Islands (the) holidays.
|
|
19
|
+
|
|
20
|
+
Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1.
|
|
21
|
+
See <https://en.wikipedia.org/wiki/ISO_3166-2:US#Subdivisions_included_in_ISO_3166-1>
|
|
22
|
+
"""
|
|
21
23
|
|
|
22
24
|
country = "VI"
|
|
23
|
-
supported_categories = (PUBLIC, UNOFFICIAL)
|
|
25
|
+
supported_categories = (GOVERNMENT, PUBLIC, UNOFFICIAL)
|
|
24
26
|
subdivisions = () # Override US subdivisions.
|
|
25
27
|
|
|
26
28
|
def _populate_public_holidays(self) -> None:
|
|
27
29
|
self.subdiv = "VI"
|
|
28
30
|
super()._populate_public_holidays()
|
|
29
31
|
|
|
32
|
+
def _populate_government_holidays(self) -> None:
|
|
33
|
+
self.subdiv = "VI"
|
|
34
|
+
super()._populate_government_holidays()
|
|
35
|
+
|
|
30
36
|
def _populate_unofficial_holidays(self) -> None:
|
|
31
37
|
self.subdiv = "VI"
|
|
32
38
|
super()._populate_unofficial_holidays()
|
holidays/countries/uruguay.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
|
|
@@ -24,15 +24,16 @@ from holidays.observed_holiday_base import (
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class Uruguay(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
27
|
-
"""
|
|
27
|
+
"""Uruguay holidays.
|
|
28
|
+
|
|
28
29
|
References:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Uruguay>
|
|
31
|
+
* [Law #6997](https://www.impo.com.uy/diariooficial/1919/10/25/2)
|
|
32
|
+
* [Decree Law #9000](https://www.impo.com.uy/bases/decretos-ley/9000-1933)
|
|
33
|
+
* [Decree Law #14977](https://www.impo.com.uy/bases/decretos-ley/14977-1979)
|
|
34
|
+
* [Decree Law #15535](https://www.impo.com.uy/bases/decretos-ley/15535-1984)
|
|
35
|
+
* [Law #16805](http://www.parlamento.gub.uy/leyes/AccesoTextoLey.asp?Ley=16805)
|
|
36
|
+
* [Law #17414](http://www.parlamento.gub.uy/leyes/AccesoTextoLey.asp?Ley=17414)
|
|
36
37
|
"""
|
|
37
38
|
|
|
38
39
|
country = "UY"
|
holidays/countries/uzbekistan.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
|
|
@@ -20,11 +20,12 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SAT_SUN_TO_NEXT_
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class Uzbekistan(ObservedHolidayBase, InternationalHolidays, IslamicHolidays, StaticHolidays):
|
|
23
|
-
"""
|
|
23
|
+
"""Uzbekistan holidays.
|
|
24
|
+
|
|
24
25
|
References:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Uzbekistan>
|
|
27
|
+
* [Labor Code 21.12.1995](https://lex.uz/docs/-142859)
|
|
28
|
+
* [Labor Code 28.10.2022](https://lex.uz/docs/-6257288)
|
|
28
29
|
"""
|
|
29
30
|
|
|
30
31
|
country = "UZ"
|
|
@@ -38,9 +39,17 @@ class Uzbekistan(ObservedHolidayBase, InternationalHolidays, IslamicHolidays, St
|
|
|
38
39
|
supported_languages = ("en_US", "uk", "uz")
|
|
39
40
|
start_year = 1992
|
|
40
41
|
|
|
41
|
-
def __init__(self, *args, **kwargs):
|
|
42
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
43
|
+
"""
|
|
44
|
+
Args:
|
|
45
|
+
islamic_show_estimated:
|
|
46
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
47
|
+
if holiday date is estimated.
|
|
48
|
+
"""
|
|
42
49
|
InternationalHolidays.__init__(self)
|
|
43
|
-
IslamicHolidays.__init__(
|
|
50
|
+
IslamicHolidays.__init__(
|
|
51
|
+
self, cls=UzbekistanIslamicHolidays, show_estimated=islamic_show_estimated
|
|
52
|
+
)
|
|
44
53
|
StaticHolidays.__init__(self, UzbekistanStaticHolidays)
|
|
45
54
|
kwargs.setdefault("observed_rule", SAT_SUN_TO_NEXT_WORKDAY)
|
|
46
55
|
super().__init__(*args, **kwargs)
|
holidays/countries/vanuatu.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -16,10 +16,12 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON,
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class Vanuatu(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
"""Vanuatu holidays.
|
|
20
|
+
|
|
21
|
+
References:
|
|
22
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Vanuatu>
|
|
23
|
+
* <https://www.timeanddate.com/holidays/vanuatu/>
|
|
24
|
+
* <https://www.gov.vu/index.php/events/holidays>
|
|
23
25
|
"""
|
|
24
26
|
|
|
25
27
|
country = "VU"
|
|
@@ -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,23 +17,24 @@ from holidays.holiday_base import HolidayBase
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class VaticanCity(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
20
|
-
"""
|
|
20
|
+
"""Vatican City holidays.
|
|
21
|
+
|
|
21
22
|
References:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
* <https://www.vatican.va/roman_curia/labour_office/docs/documents/ulsa_b18_7_it.html>
|
|
24
|
+
* <https://cdn.restorethe54.com/media/pdf/1917-code-of-canon-law-english.pdf>
|
|
25
|
+
* <https://www.vatican.va/archive/cod-iuris-canonici/eng/documents/cic_lib4-cann1244-1253_en.html>
|
|
26
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Vatican_City>
|
|
27
|
+
* <https://en.wikipedia.org/wiki/Holy_day_of_obligation>
|
|
28
|
+
* <https://www.ewtn.com/catholicism/library/solemnity-of-mary-mother-of-god-5826>
|
|
29
|
+
* <https://www.franciscanmedia.org/saint-of-the-day/saint-joseph-the-worker/>
|
|
29
30
|
|
|
30
31
|
Cross-checked With:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
* <https://www.vaticanstate.va/images/pdf/CALENDARIO_2020.pdf>
|
|
33
|
+
* <https://www.farmaciavaticana.va/images/pdf/calendario_2021.pdf>
|
|
34
|
+
* <https://www.farmaciavaticana.va/images/pdf/calendario_2022.pdf>
|
|
35
|
+
* <https://www.farmaciavaticana.va/images/pdf/calendario_2023.pdf>
|
|
36
|
+
* <https://www.farmaciavaticana.va/media/attachments/2024/01/02/calendario_2024.pdf>
|
|
37
|
+
* <https://www.farmaciavaticana.va/media/attachments/2025/01/02/calendario-2025.pdf>
|
|
37
38
|
"""
|
|
38
39
|
|
|
39
40
|
country = "VA"
|
holidays/countries/venezuela.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,16 @@ from holidays.holiday_base import HolidayBase
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Venezuela(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
20
|
-
"""
|
|
21
|
-
|
|
20
|
+
"""Venezuela holidays.
|
|
21
|
+
|
|
22
|
+
References:
|
|
23
|
+
* <https://dias-festivos.eu/dias-festivos/venezuela/#>
|
|
24
|
+
* [1909 Aug 5](https://www.guao.org/sites/default/files/efemerides/69.Ley%20fiestas%20nacionales%201909.pdf)
|
|
25
|
+
* [1918 May 19](https://www.guao.org/sites/default/files/efemerides/70.%20Ley%20de%20fiestas%20nacionales%201918.pdf)
|
|
26
|
+
* [1921 Jun 11](https://guao.org/sites/default/files/efemerides/37.LEYES_Y_DECRETOS_1921_Di%cc%81a_de_la_raza.PDF)
|
|
27
|
+
* [1971 Jun 22](https://www.ilo.org/dyn/travail/docs/2030/Law%20No.29.541.pdf)
|
|
28
|
+
* [2002 Oct 10](https://www.acnur.org/fileadmin/Documentos/BDL/2008/6635.pdf)
|
|
29
|
+
* [2012 May 7](https://oig.cepal.org/sites/default/files/2012_leyorgtrabajo_ven.pdf)
|
|
22
30
|
"""
|
|
23
31
|
|
|
24
32
|
country = "VE"
|
|
@@ -32,17 +40,6 @@ class Venezuela(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
32
40
|
super().__init__(*args, **kwargs)
|
|
33
41
|
|
|
34
42
|
def _populate_public_holidays(self):
|
|
35
|
-
"""
|
|
36
|
-
Overview: https://dias-festivos.eu/dias-festivos/venezuela/#
|
|
37
|
-
Various decrees about holidays:
|
|
38
|
-
1909 (AUG 5): https://bit.ly/3J0mWKQ
|
|
39
|
-
1918 (MAY 19): https://bit.ly/3B8O1Jz
|
|
40
|
-
1921 (JUN 11): https://bit.ly/3aUE2gz
|
|
41
|
-
1971 (JUN 22): https://bit.ly/3yZaUN9
|
|
42
|
-
2002 (OCT 10): https://bit.ly/3B7nRqC
|
|
43
|
-
2012 (MAY 7): https://bit.ly/2MT5x97
|
|
44
|
-
"""
|
|
45
|
-
|
|
46
43
|
# New Year's Day.
|
|
47
44
|
self._add_new_years_day(tr("Año Nuevo"))
|
|
48
45
|
|