holidays 0.70__py3-none-any.whl → 0.72__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 -2
- holidays/calendars/__init__.py +1 -1
- holidays/calendars/balinese_saka.py +1 -1
- holidays/calendars/buddhist.py +5 -3
- holidays/calendars/chinese.py +101 -13
- holidays/calendars/custom.py +1 -1
- holidays/calendars/gregorian.py +1 -1
- holidays/calendars/hebrew.py +1 -1
- holidays/calendars/hindu.py +47 -3
- holidays/calendars/islamic.py +1 -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 +1 -1
- holidays/constants.py +1 -1
- holidays/countries/__init__.py +7 -1
- holidays/countries/afghanistan.py +1 -1
- holidays/countries/albania.py +2 -2
- holidays/countries/algeria.py +1 -1
- holidays/countries/american_samoa.py +2 -1
- holidays/countries/andorra.py +10 -1
- holidays/countries/angola.py +1 -1
- holidays/countries/antigua_and_barbuda.py +1 -1
- holidays/countries/argentina.py +5 -5
- holidays/countries/armenia.py +1 -1
- holidays/countries/aruba.py +1 -1
- holidays/countries/australia.py +16 -5
- holidays/countries/austria.py +3 -3
- holidays/countries/azerbaijan.py +1 -1
- holidays/countries/bahamas.py +1 -1
- holidays/countries/bahrain.py +1 -1
- holidays/countries/bangladesh.py +1 -1
- holidays/countries/barbados.py +1 -1
- holidays/countries/belarus.py +1 -1
- holidays/countries/belgium.py +1 -1
- holidays/countries/belize.py +1 -1
- holidays/countries/bolivia.py +23 -12
- holidays/countries/bosnia_and_herzegovina.py +5 -5
- holidays/countries/botswana.py +1 -1
- holidays/countries/brazil.py +3 -4
- holidays/countries/brunei.py +1 -1
- holidays/countries/bulgaria.py +1 -1
- holidays/countries/burkina_faso.py +1 -1
- holidays/countries/burundi.py +1 -1
- holidays/countries/cambodia.py +22 -22
- holidays/countries/cameroon.py +1 -1
- holidays/countries/canada.py +91 -57
- holidays/countries/chad.py +1 -1
- holidays/countries/chile.py +36 -18
- holidays/countries/china.py +1 -1
- holidays/countries/colombia.py +1 -1
- holidays/countries/congo.py +1 -1
- holidays/countries/costa_rica.py +1 -1
- holidays/countries/croatia.py +1 -1
- holidays/countries/cuba.py +1 -1
- holidays/countries/curacao.py +1 -1
- holidays/countries/cyprus.py +1 -1
- holidays/countries/czechia.py +1 -1
- holidays/countries/denmark.py +1 -1
- holidays/countries/djibouti.py +1 -1
- holidays/countries/dominica.py +1 -1
- holidays/countries/dominican_republic.py +1 -1
- holidays/countries/ecuador.py +1 -1
- holidays/countries/egypt.py +1 -1
- holidays/countries/el_salvador.py +18 -18
- holidays/countries/estonia.py +1 -1
- holidays/countries/eswatini.py +1 -1
- holidays/countries/ethiopia.py +43 -24
- holidays/countries/fiji.py +1 -1
- holidays/countries/finland.py +1 -1
- holidays/countries/france.py +4 -5
- holidays/countries/french_southern_territories.py +53 -0
- holidays/countries/gabon.py +1 -1
- holidays/countries/georgia.py +1 -1
- holidays/countries/germany.py +20 -21
- holidays/countries/ghana.py +1 -1
- holidays/countries/greece.py +1 -1
- holidays/countries/greenland.py +1 -1
- holidays/countries/guam.py +2 -1
- holidays/countries/guatemala.py +1 -1
- holidays/countries/guernsey.py +1 -1
- holidays/countries/guinea.py +1 -1
- holidays/countries/haiti.py +1 -1
- holidays/countries/honduras.py +1 -1
- holidays/countries/hongkong.py +2 -2
- holidays/countries/hungary.py +1 -1
- holidays/countries/iceland.py +1 -1
- holidays/countries/india.py +17 -11
- holidays/countries/indonesia.py +1 -1
- holidays/countries/iran.py +1 -1
- holidays/countries/ireland.py +1 -1
- holidays/countries/isle_of_man.py +1 -1
- holidays/countries/israel.py +1 -1
- holidays/countries/italy.py +1 -1
- holidays/countries/ivory_coast.py +5 -5
- holidays/countries/jamaica.py +1 -1
- holidays/countries/japan.py +1 -1
- holidays/countries/jersey.py +1 -1
- holidays/countries/jordan.py +1 -1
- holidays/countries/kazakhstan.py +1 -1
- holidays/countries/kenya.py +1 -1
- holidays/countries/kuwait.py +1 -1
- holidays/countries/kyrgyzstan.py +1 -1
- holidays/countries/laos.py +1 -1
- holidays/countries/latvia.py +1 -1
- holidays/countries/lesotho.py +1 -1
- holidays/countries/liechtenstein.py +1 -1
- holidays/countries/lithuania.py +1 -1
- holidays/countries/luxembourg.py +1 -1
- holidays/countries/macau.py +5 -5
- holidays/countries/madagascar.py +1 -1
- holidays/countries/malawi.py +1 -1
- holidays/countries/malaysia.py +26 -22
- holidays/countries/maldives.py +1 -1
- holidays/countries/malta.py +1 -1
- holidays/countries/marshall_islands.py +1 -1
- holidays/countries/mauritania.py +1 -1
- holidays/countries/mexico.py +1 -1
- holidays/countries/moldova.py +1 -1
- holidays/countries/monaco.py +1 -1
- holidays/countries/montenegro.py +1 -1
- holidays/countries/morocco.py +1 -1
- holidays/countries/mozambique.py +1 -1
- holidays/countries/namibia.py +1 -1
- holidays/countries/netherlands.py +1 -1
- holidays/countries/new_zealand.py +19 -19
- holidays/countries/nicaragua.py +19 -19
- holidays/countries/nigeria.py +1 -1
- holidays/countries/north_macedonia.py +1 -1
- holidays/countries/northern_mariana_islands.py +2 -1
- holidays/countries/norway.py +1 -1
- holidays/countries/oman.py +185 -0
- holidays/countries/pakistan.py +8 -1
- holidays/countries/palau.py +1 -1
- holidays/countries/panama.py +1 -1
- holidays/countries/papua_new_guinea.py +1 -1
- holidays/countries/paraguay.py +1 -1
- holidays/countries/peru.py +1 -1
- holidays/countries/philippines.py +1 -1
- holidays/countries/poland.py +1 -1
- holidays/countries/portugal.py +23 -25
- holidays/countries/puerto_rico.py +2 -1
- holidays/countries/qatar.py +1 -1
- holidays/countries/romania.py +1 -1
- holidays/countries/russia.py +1 -1
- holidays/countries/saint_kitts_and_nevis.py +1 -1
- holidays/countries/saint_lucia.py +1 -1
- holidays/countries/samoa.py +1 -1
- holidays/countries/san_marino.py +1 -1
- holidays/countries/sao_tome_and_principe.py +112 -0
- holidays/countries/saudi_arabia.py +1 -1
- holidays/countries/serbia.py +1 -1
- holidays/countries/seychelles.py +1 -1
- holidays/countries/sierra_leone.py +149 -0
- holidays/countries/singapore.py +5 -2
- holidays/countries/slovakia.py +1 -1
- holidays/countries/slovenia.py +1 -1
- holidays/countries/south_africa.py +1 -1
- holidays/countries/south_korea.py +17 -46
- holidays/countries/spain.py +43 -20
- holidays/countries/sri_lanka.py +1 -1
- holidays/countries/suriname.py +227 -0
- holidays/countries/sweden.py +1 -1
- holidays/countries/switzerland.py +61 -28
- holidays/countries/taiwan.py +3 -2
- holidays/countries/tanzania.py +1 -1
- holidays/countries/thailand.py +3 -3
- holidays/countries/timor_leste.py +1 -1
- holidays/countries/tonga.py +1 -1
- holidays/countries/trinidad_and_tobago.py +197 -0
- holidays/countries/tunisia.py +1 -1
- holidays/countries/turkey.py +1 -1
- holidays/countries/tuvalu.py +6 -6
- holidays/countries/ukraine.py +1 -1
- holidays/countries/united_arab_emirates.py +1 -1
- holidays/countries/united_kingdom.py +1 -1
- holidays/countries/united_states.py +62 -4
- holidays/countries/united_states_minor_outlying_islands.py +2 -1
- holidays/countries/united_states_virgin_islands.py +2 -1
- holidays/countries/uruguay.py +1 -1
- holidays/countries/uzbekistan.py +1 -1
- holidays/countries/vanuatu.py +1 -1
- holidays/countries/vatican_city.py +1 -1
- holidays/countries/venezuela.py +1 -1
- holidays/countries/vietnam.py +3 -2
- holidays/countries/zambia.py +1 -1
- holidays/countries/zimbabwe.py +1 -1
- holidays/deprecations/v1_incompatibility.py +1 -1
- holidays/financial/__init__.py +1 -1
- holidays/financial/brasil_bolsa_balcao.py +1 -1
- holidays/financial/european_central_bank.py +1 -1
- holidays/financial/ice_futures_europe.py +1 -1
- holidays/financial/ny_stock_exchange.py +1 -1
- holidays/groups/__init__.py +1 -1
- holidays/groups/balinese_saka.py +1 -1
- holidays/groups/buddhist.py +1 -1
- holidays/groups/chinese.py +6 -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 +45 -3
- holidays/groups/international.py +1 -1
- holidays/groups/islamic.py +11 -1
- holidays/groups/persian.py +1 -1
- holidays/groups/sinhala.py +1 -1
- holidays/groups/thai.py +6 -6
- holidays/helpers.py +1 -1
- holidays/holiday_base.py +32 -6
- holidays/ical.py +2 -2
- holidays/locale/am/LC_MESSAGES/ET.mo +0 -0
- holidays/locale/ar/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/ar/LC_MESSAGES/ET.mo +0 -0
- holidays/locale/ar/LC_MESSAGES/OM.mo +0 -0
- holidays/locale/en_CA/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/en_CI/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_ET/LC_MESSAGES/ET.mo +0 -0
- holidays/locale/en_IN/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_SL/LC_MESSAGES/SL.mo +0 -0
- holidays/locale/en_TT/LC_MESSAGES/TT.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/ET.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/KH.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/SL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/SR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/ST.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TF.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TT.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/TF.mo +0 -0
- holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/km/LC_MESSAGES/KH.mo +0 -0
- holidays/locale/nl/LC_MESSAGES/SR.mo +0 -0
- holidays/locale/pt_ST/LC_MESSAGES/ST.mo +0 -0
- holidays/locale/th/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/th/LC_MESSAGES/KH.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 +1 -1
- holidays/observed_holiday_base.py +6 -2
- holidays/registry.py +7 -1
- holidays/utils.py +61 -9
- holidays/version.py +2 -2
- {holidays-0.70.dist-info → holidays-0.72.dist-info}/METADATA +64 -16
- {holidays-0.70.dist-info → holidays-0.72.dist-info}/RECORD +254 -234
- {holidays-0.70.dist-info → holidays-0.72.dist-info}/WHEEL +1 -1
- holidays-0.70.dist-info/licenses/AUTHORS.md → holidays-0.72.dist-info/licenses/CONTRIBUTORS +4 -2
- {holidays-0.70.dist-info → holidays-0.72.dist-info}/licenses/LICENSE +1 -1
- {holidays-0.70.dist-info → holidays-0.72.dist-info}/top_level.txt +0 -0
holidays/countries/canada.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
|
@@ -41,30 +41,56 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
41
41
|
* <https://www.gov.nu.ca/en/print/pdf/node/52266>
|
|
42
42
|
* <https://www.officeholidays.com/countries/canada/>
|
|
43
43
|
* <https://www.timeanddate.com/holidays/canada/>
|
|
44
|
+
* <https://web.archive.org/web/20250122122256/https://www.warmuseum.ca/firstworldwar/history/after-the-war/remembrance/remembrance-day/>
|
|
45
|
+
* <https://web.archive.org/web/20250428153936/https://www.thecanadianencyclopedia.ca/en/article/thanksgiving-day>
|
|
46
|
+
* <https://web.archive.org/web/20250428154427/https://recherche-collection-search.bac-lac.gc.ca/eng/home/record?idnumber=9326&app=diawlmking&ecopy=80003QJW>
|
|
47
|
+
* <https://web.archive.org/web/20240915001506/https://www.britannica.com/topic/Victoria-Day>
|
|
44
48
|
"""
|
|
45
49
|
|
|
46
50
|
country = "CA"
|
|
47
51
|
default_language = "en_CA"
|
|
48
52
|
# %s (observed).
|
|
49
53
|
observed_label = tr("%s (observed)")
|
|
50
|
-
|
|
54
|
+
start_year = 1867
|
|
51
55
|
subdivisions = (
|
|
52
|
-
"AB",
|
|
53
|
-
"BC",
|
|
54
|
-
"MB",
|
|
55
|
-
"NB",
|
|
56
|
-
"NL",
|
|
57
|
-
"NS",
|
|
58
|
-
"NT",
|
|
59
|
-
"NU",
|
|
60
|
-
"ON",
|
|
61
|
-
"PE",
|
|
62
|
-
"QC",
|
|
63
|
-
"SK",
|
|
64
|
-
"YT",
|
|
56
|
+
"AB", # Alberta.
|
|
57
|
+
"BC", # British Columbia (Colombie-Britannique).
|
|
58
|
+
"MB", # Manitoba.
|
|
59
|
+
"NB", # New Brunswick (Nouveau-Brunswick).
|
|
60
|
+
"NL", # Newfoundland and Labrador (Terre-Neuve-et-Labrador).
|
|
61
|
+
"NS", # Nova Scotia (Nouvelle-Écosse).
|
|
62
|
+
"NT", # Northwest Territories (Territoires du Nord-Ouest).
|
|
63
|
+
"NU", # Nunavut.
|
|
64
|
+
"ON", # Ontario.
|
|
65
|
+
"PE", # Prince Edward Island (Île-du-Prince-Édouard).
|
|
66
|
+
"QC", # Quebec (Québec).
|
|
67
|
+
"SK", # Saskatchewan.
|
|
68
|
+
"YT", # Yukon.
|
|
65
69
|
)
|
|
70
|
+
subdivisions_aliases = {
|
|
71
|
+
"Alberta": "AB",
|
|
72
|
+
"British Columbia": "BC",
|
|
73
|
+
"Colombie-Britannique": "BC",
|
|
74
|
+
"Manitoba": "MB",
|
|
75
|
+
"New Brunswick": "NB",
|
|
76
|
+
"Nouveau-Brunswick": "NB",
|
|
77
|
+
"Newfoundland and Labrador": "NL",
|
|
78
|
+
"Terre-Neuve-et-Labrador": "NL",
|
|
79
|
+
"Nova Scotia": "NS",
|
|
80
|
+
"Nouvelle-Écosse": "NS",
|
|
81
|
+
"Northwest Territories": "NT",
|
|
82
|
+
"Territoires du Nord-Ouest": "NT",
|
|
83
|
+
"Nunavut": "NU",
|
|
84
|
+
"Ontario": "ON",
|
|
85
|
+
"Prince Edward Island": "PE",
|
|
86
|
+
"Île-du-Prince-Édouard": "PE",
|
|
87
|
+
"Quebec": "QC",
|
|
88
|
+
"Québec": "QC",
|
|
89
|
+
"Saskatchewan": "SK",
|
|
90
|
+
"Yukon": "YT",
|
|
91
|
+
}
|
|
92
|
+
supported_categories = (GOVERNMENT, OPTIONAL, PUBLIC)
|
|
66
93
|
supported_languages = ("ar", "en_CA", "en_US", "fr", "th")
|
|
67
|
-
start_year = 1867
|
|
68
94
|
|
|
69
95
|
def __init__(self, *args, **kwargs):
|
|
70
96
|
ChristianHolidays.__init__(self)
|
|
@@ -111,9 +137,7 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
111
137
|
|
|
112
138
|
self._add_statutory_holidays()
|
|
113
139
|
|
|
114
|
-
|
|
115
|
-
# Victoria Day.
|
|
116
|
-
self._add_holiday_1st_mon_before_may_24(tr("Victoria Day"))
|
|
140
|
+
self._add_victoria_day()
|
|
117
141
|
|
|
118
142
|
if self._year >= 1879:
|
|
119
143
|
self._add_observed(self._canada_day)
|
|
@@ -132,42 +156,64 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
132
156
|
|
|
133
157
|
self._add_observed(self._christmas_day, rule=SAT_SUN_TO_NEXT_MON_TUE)
|
|
134
158
|
|
|
135
|
-
# Boxing Day.
|
|
136
159
|
self._add_observed(
|
|
137
|
-
|
|
160
|
+
# Boxing Day.
|
|
161
|
+
self._add_christmas_day_two(tr("Boxing Day")),
|
|
162
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
138
163
|
)
|
|
139
164
|
|
|
140
165
|
def _populate_optional_holidays(self):
|
|
141
|
-
# Christmas Day.
|
|
142
166
|
self._add_observed(
|
|
143
|
-
|
|
167
|
+
# Christmas Day.
|
|
168
|
+
self._add_christmas_day(tr("Christmas Day")),
|
|
169
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
144
170
|
)
|
|
145
171
|
|
|
146
|
-
# Boxing Day.
|
|
147
172
|
self._add_observed(
|
|
148
|
-
|
|
173
|
+
# Boxing Day.
|
|
174
|
+
self._add_christmas_day_two(tr("Boxing Day")),
|
|
175
|
+
rule=SAT_SUN_TO_NEXT_MON_TUE,
|
|
149
176
|
)
|
|
150
177
|
|
|
151
|
-
def _add_thanksgiving_day(self):
|
|
178
|
+
def _add_thanksgiving_day(self) -> None:
|
|
179
|
+
"""Adds Thanksgiving Day / Armistice Day.
|
|
180
|
+
|
|
181
|
+
In 1921, Thanksgiving Day was moved to "Armistice Day" (1st Monday in the week of Nov 11).
|
|
182
|
+
"Remembrance Day" and "Thanksgiving Day" split again in 1931, with Thanksgiving usually on
|
|
183
|
+
the 2nd Monday of October — except in 1935, when it was delayed 10 days due to a General
|
|
184
|
+
Election. It was finally fixed to the 2nd Monday of October permanently in 1957.
|
|
185
|
+
"""
|
|
152
186
|
if self._year >= 1931:
|
|
153
187
|
# Thanksgiving Day.
|
|
154
188
|
name = tr("Thanksgiving Day")
|
|
155
|
-
# in 1935, Canadian Thanksgiving was moved due to the General
|
|
156
|
-
# Election falling on the second Monday of October
|
|
157
|
-
# http://tiny.cc/can_thkgvg
|
|
158
189
|
if self._year == 1935:
|
|
159
|
-
self.
|
|
190
|
+
self._add_holiday_oct_24(name)
|
|
160
191
|
else:
|
|
161
192
|
self._add_holiday_2nd_mon_of_oct(name)
|
|
193
|
+
elif self._year >= 1921:
|
|
194
|
+
# Armistice Day.
|
|
195
|
+
self._add_holiday_1st_mon_before_nov_12(tr("Armistice Day"))
|
|
196
|
+
|
|
197
|
+
def _add_victoria_day(self) -> None:
|
|
198
|
+
"""Adds Victoria Day.
|
|
199
|
+
|
|
200
|
+
After Queen Victoria's death in 1901, an act of the Canadian Parliament established
|
|
201
|
+
Victoria Day as a legal holiday, to be celebrated on May 24 (or on May 25 when
|
|
202
|
+
May 24 fell on a Sunday). This was later moved to the Monday preceding May 24 in 1952.
|
|
203
|
+
"""
|
|
204
|
+
# Victoria Day.
|
|
205
|
+
name = tr("Victoria Day")
|
|
206
|
+
if self._year >= 1953:
|
|
207
|
+
self._add_holiday_1st_mon_before_may_24(name)
|
|
208
|
+
elif self._year >= 1901:
|
|
209
|
+
self._add_observed(self._add_holiday_may_24(name), rule=SUN_TO_NEXT_MON)
|
|
162
210
|
|
|
163
211
|
def _populate_subdiv_ab_public_holidays(self):
|
|
164
212
|
if self._year >= 1990:
|
|
165
213
|
# Family Day.
|
|
166
214
|
self._add_holiday_3rd_mon_of_feb(tr("Family Day"))
|
|
167
215
|
|
|
168
|
-
|
|
169
|
-
# Victoria Day.
|
|
170
|
-
self._add_holiday_1st_mon_before_may_24(tr("Victoria Day"))
|
|
216
|
+
self._add_victoria_day()
|
|
171
217
|
|
|
172
218
|
if self._year >= 1879:
|
|
173
219
|
self._add_observed(self._canada_day, rule=SUN_TO_NEXT_MON)
|
|
@@ -196,15 +242,14 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
196
242
|
|
|
197
243
|
def _populate_subdiv_bc_public_holidays(self):
|
|
198
244
|
if self._year >= 2013:
|
|
245
|
+
# Family Day.
|
|
199
246
|
name = tr("Family Day")
|
|
200
247
|
if self._year >= 2019:
|
|
201
248
|
self._add_holiday_3rd_mon_of_feb(name)
|
|
202
249
|
else:
|
|
203
250
|
self._add_holiday_2nd_mon_of_feb(name)
|
|
204
251
|
|
|
205
|
-
|
|
206
|
-
# Victoria Day.
|
|
207
|
-
self._add_holiday_1st_mon_before_may_24(tr("Victoria Day"))
|
|
252
|
+
self._add_victoria_day()
|
|
208
253
|
|
|
209
254
|
if self._year >= 1879:
|
|
210
255
|
self._add_observed(self._canada_day, rule=SUN_TO_NEXT_MON)
|
|
@@ -229,9 +274,7 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
229
274
|
# Louis Riel Day.
|
|
230
275
|
self._add_holiday_3rd_mon_of_feb(tr("Louis Riel Day"))
|
|
231
276
|
|
|
232
|
-
|
|
233
|
-
# Victoria Day.
|
|
234
|
-
self._add_holiday_1st_mon_before_may_24(tr("Victoria Day"))
|
|
277
|
+
self._add_victoria_day()
|
|
235
278
|
|
|
236
279
|
self._add_thanksgiving_day()
|
|
237
280
|
|
|
@@ -264,9 +307,7 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
264
307
|
self._add_remembrance_day(tr("Remembrance Day"))
|
|
265
308
|
|
|
266
309
|
def _populate_subdiv_nb_optional_holidays(self):
|
|
267
|
-
|
|
268
|
-
# Victoria Day.
|
|
269
|
-
self._add_holiday_1st_mon_before_may_24(tr("Victoria Day"))
|
|
310
|
+
self._add_victoria_day()
|
|
270
311
|
|
|
271
312
|
self._add_thanksgiving_day()
|
|
272
313
|
|
|
@@ -327,9 +368,7 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
327
368
|
self._add_holiday_1st_mon_of_aug(tr("Natal Day"))
|
|
328
369
|
|
|
329
370
|
def _populate_subdiv_nt_public_holidays(self):
|
|
330
|
-
|
|
331
|
-
# Victoria Day.
|
|
332
|
-
self._add_holiday_1st_mon_before_may_24(tr("Victoria Day"))
|
|
371
|
+
self._add_victoria_day()
|
|
333
372
|
|
|
334
373
|
if self._year >= 1996:
|
|
335
374
|
# National Aboriginal Day.
|
|
@@ -350,9 +389,7 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
350
389
|
self._add_remembrance_day(tr("Remembrance Day"))
|
|
351
390
|
|
|
352
391
|
def _populate_subdiv_nu_public_holidays(self):
|
|
353
|
-
|
|
354
|
-
# Victoria Day.
|
|
355
|
-
self._add_holiday_1st_mon_before_may_24(tr("Victoria Day"))
|
|
392
|
+
self._add_victoria_day()
|
|
356
393
|
|
|
357
394
|
if self._year >= 2020:
|
|
358
395
|
# Nunavut Day.
|
|
@@ -374,6 +411,7 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
374
411
|
|
|
375
412
|
def _populate_subdiv_nu_optional_holidays(self):
|
|
376
413
|
if 2000 <= self._year <= 2019:
|
|
414
|
+
# Nunavut Day.
|
|
377
415
|
name = tr("Nunavut Day")
|
|
378
416
|
if self._year == 2000:
|
|
379
417
|
self._add_holiday_apr_1(name)
|
|
@@ -385,12 +423,11 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
385
423
|
# Family Day.
|
|
386
424
|
self._add_holiday_3rd_mon_of_feb(tr("Family Day"))
|
|
387
425
|
|
|
388
|
-
|
|
389
|
-
# Victoria Day.
|
|
390
|
-
self._add_holiday_1st_mon_before_may_24(tr("Victoria Day"))
|
|
426
|
+
self._add_victoria_day()
|
|
391
427
|
|
|
392
428
|
self._add_thanksgiving_day()
|
|
393
429
|
|
|
430
|
+
# Boxing Day.
|
|
394
431
|
self._add_observed(self._add_christmas_day_two(tr("Boxing Day")), rule=SUN_TO_NEXT_TUE)
|
|
395
432
|
|
|
396
433
|
def _populate_subdiv_on_optional_holidays(self):
|
|
@@ -444,9 +481,7 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
444
481
|
# Family Day.
|
|
445
482
|
self._add_holiday_3rd_mon_of_feb(tr("Family Day"))
|
|
446
483
|
|
|
447
|
-
|
|
448
|
-
# Victoria Day.
|
|
449
|
-
self._add_holiday_1st_mon_before_may_24(tr("Victoria Day"))
|
|
484
|
+
self._add_victoria_day()
|
|
450
485
|
|
|
451
486
|
if self._year >= 1879:
|
|
452
487
|
self._add_observed(self._canada_day)
|
|
@@ -463,9 +498,7 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
463
498
|
self._add_observed(self._add_remembrance_day(tr("Remembrance Day")))
|
|
464
499
|
|
|
465
500
|
def _populate_subdiv_yt_public_holidays(self):
|
|
466
|
-
|
|
467
|
-
# Victoria Day.
|
|
468
|
-
self._add_holiday_1st_mon_before_may_24(tr("Victoria Day"))
|
|
501
|
+
self._add_victoria_day()
|
|
469
502
|
|
|
470
503
|
if self._year >= 2017:
|
|
471
504
|
# National Aboriginal Day.
|
|
@@ -491,6 +524,7 @@ class Canada(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stat
|
|
|
491
524
|
def _populate_subdiv_yt_optional_holidays(self):
|
|
492
525
|
# Friday before the last Sunday in February
|
|
493
526
|
if self._year >= 1976:
|
|
527
|
+
# Heritage Day.
|
|
494
528
|
self._add_holiday_2_days_prior_last_sun_of_feb(tr("Heritage Day"))
|
|
495
529
|
|
|
496
530
|
|
holidays/countries/chad.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/chile.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
|
@@ -60,27 +60,45 @@ class Chile(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stati
|
|
|
60
60
|
|
|
61
61
|
country = "CL"
|
|
62
62
|
default_language = "es"
|
|
63
|
+
start_year = 1915
|
|
63
64
|
subdivisions = (
|
|
64
|
-
"AI",
|
|
65
|
-
"AN",
|
|
66
|
-
"AP",
|
|
67
|
-
"AR",
|
|
68
|
-
"AT",
|
|
69
|
-
"BI",
|
|
70
|
-
"CO",
|
|
71
|
-
"LI",
|
|
72
|
-
"LL",
|
|
73
|
-
"LR",
|
|
74
|
-
"MA",
|
|
75
|
-
"ML",
|
|
76
|
-
"NB",
|
|
77
|
-
"RM",
|
|
78
|
-
"TA",
|
|
79
|
-
"VS",
|
|
65
|
+
"AI", # Aisén del General Carlos Ibañez del Campo.
|
|
66
|
+
"AN", # Antofagasta.
|
|
67
|
+
"AP", # Arica y Parinacota.
|
|
68
|
+
"AR", # La Araucanía.
|
|
69
|
+
"AT", # Atacama.
|
|
70
|
+
"BI", # Biobío.
|
|
71
|
+
"CO", # Coquimbo.
|
|
72
|
+
"LI", # Libertador General Bernardo O'Higgins.
|
|
73
|
+
"LL", # Los Lagos.
|
|
74
|
+
"LR", # Los Ríos.
|
|
75
|
+
"MA", # Magallanes.
|
|
76
|
+
"ML", # Maule.
|
|
77
|
+
"NB", # Ñuble.
|
|
78
|
+
"RM", # Región Metropolitana de Santiago.
|
|
79
|
+
"TA", # Tarapacá.
|
|
80
|
+
"VS", # Valparaíso.
|
|
80
81
|
)
|
|
82
|
+
subdivisions_aliases = {
|
|
83
|
+
"Aisén del General Carlos Ibañez del Campo": "AI",
|
|
84
|
+
"Antofagasta": "AN",
|
|
85
|
+
"Arica y Parinacota": "AP",
|
|
86
|
+
"La Araucanía": "AR",
|
|
87
|
+
"Atacama": "AT",
|
|
88
|
+
"Biobío": "BI",
|
|
89
|
+
"Coquimbo": "CO",
|
|
90
|
+
"Libertador General Bernardo O'Higgins": "LI",
|
|
91
|
+
"Los Lagos": "LL",
|
|
92
|
+
"Los Ríos": "LR",
|
|
93
|
+
"Magallanes": "MA",
|
|
94
|
+
"Maule": "ML",
|
|
95
|
+
"Ñuble": "NB",
|
|
96
|
+
"Región Metropolitana de Santiago": "RM",
|
|
97
|
+
"Tarapacá": "TA",
|
|
98
|
+
"Valparaíso": "VS",
|
|
99
|
+
}
|
|
81
100
|
supported_categories = (BANK, PUBLIC)
|
|
82
101
|
supported_languages = ("en_US", "es", "uk")
|
|
83
|
-
start_year = 1915
|
|
84
102
|
|
|
85
103
|
def __init__(self, *args, **kwargs):
|
|
86
104
|
ChristianHolidays.__init__(self)
|
holidays/countries/china.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/colombia.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/congo.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/costa_rica.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/croatia.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/cuba.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/curacao.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/cyprus.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/czechia.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/denmark.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/djibouti.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/dominica.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
|
@@ -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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/ecuador.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/egypt.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
|
@@ -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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
|
@@ -27,22 +27,23 @@ class ElSalvador(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
27
27
|
|
|
28
28
|
country = "SV"
|
|
29
29
|
default_language = "es"
|
|
30
|
-
|
|
30
|
+
# Labor Code 1972.
|
|
31
|
+
start_year = 1973
|
|
31
32
|
subdivisions = (
|
|
32
|
-
"AH", # Ahuachapán
|
|
33
|
-
"CA", # Cabañas
|
|
34
|
-
"CH", # Chalatenango
|
|
35
|
-
"CU", # Cuscatlán
|
|
36
|
-
"LI", # La Libertad
|
|
37
|
-
"MO", # Morazán
|
|
38
|
-
"PA", # La Paz
|
|
39
|
-
"SA", # Santa Ana
|
|
40
|
-
"SM", # San Miguel
|
|
41
|
-
"SO", # Sonsonate
|
|
42
|
-
"SS", # San Salvador
|
|
43
|
-
"SV", # San Vicente
|
|
44
|
-
"UN", # La Unión
|
|
45
|
-
"US", # Usulután
|
|
33
|
+
"AH", # Ahuachapán.
|
|
34
|
+
"CA", # Cabañas.
|
|
35
|
+
"CH", # Chalatenango.
|
|
36
|
+
"CU", # Cuscatlán.
|
|
37
|
+
"LI", # La Libertad.
|
|
38
|
+
"MO", # Morazán.
|
|
39
|
+
"PA", # La Paz.
|
|
40
|
+
"SA", # Santa Ana.
|
|
41
|
+
"SM", # San Miguel.
|
|
42
|
+
"SO", # Sonsonate.
|
|
43
|
+
"SS", # San Salvador.
|
|
44
|
+
"SV", # San Vicente.
|
|
45
|
+
"UN", # La Unión.
|
|
46
|
+
"US", # Usulután.
|
|
46
47
|
)
|
|
47
48
|
subdivisions_aliases = {
|
|
48
49
|
"Ahuachapán": "AH",
|
|
@@ -60,8 +61,7 @@ class ElSalvador(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
60
61
|
"La Unión": "UN",
|
|
61
62
|
"Usulután": "US",
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
-
start_year = 1973
|
|
64
|
+
supported_languages = ("en_US", "es", "uk")
|
|
65
65
|
|
|
66
66
|
def __init__(self, *args, **kwargs):
|
|
67
67
|
ChristianHolidays.__init__(self)
|
holidays/countries/estonia.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|
holidays/countries/eswatini.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
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS 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
|