holidays 0.69__py3-none-any.whl → 0.70__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- holidays/__init__.py +1 -1
- holidays/calendars/__init__.py +1 -1
- holidays/calendars/balinese_saka.py +3 -3
- holidays/calendars/buddhist.py +1 -1
- holidays/calendars/chinese.py +1 -1
- holidays/calendars/custom.py +1 -1
- holidays/calendars/gregorian.py +1 -1
- holidays/calendars/hebrew.py +1 -1
- holidays/calendars/hindu.py +1 -1
- holidays/calendars/islamic.py +161 -1
- holidays/calendars/julian.py +1 -1
- holidays/calendars/julian_revised.py +1 -1
- holidays/calendars/persian.py +1 -1
- holidays/calendars/sinhala.py +1 -1
- holidays/calendars/thai.py +309 -257
- holidays/constants.py +2 -1
- holidays/countries/__init__.py +6 -1
- holidays/countries/afghanistan.py +11 -7
- holidays/countries/albania.py +10 -7
- holidays/countries/algeria.py +10 -10
- holidays/countries/american_samoa.py +6 -4
- holidays/countries/andorra.py +5 -4
- holidays/countries/angola.py +15 -14
- holidays/countries/antigua_and_barbuda.py +145 -0
- holidays/countries/argentina.py +787 -169
- holidays/countries/armenia.py +5 -6
- holidays/countries/aruba.py +11 -9
- holidays/countries/australia.py +21 -20
- holidays/countries/austria.py +3 -1
- holidays/countries/azerbaijan.py +24 -19
- holidays/countries/bahamas.py +13 -11
- holidays/countries/bahrain.py +8 -7
- holidays/countries/bangladesh.py +5 -4
- holidays/countries/barbados.py +11 -9
- holidays/countries/belarus.py +15 -15
- holidays/countries/belgium.py +8 -6
- holidays/countries/belize.py +7 -6
- holidays/countries/bolivia.py +12 -11
- holidays/countries/bosnia_and_herzegovina.py +15 -11
- holidays/countries/botswana.py +8 -6
- holidays/countries/brazil.py +8 -7
- holidays/countries/brunei.py +50 -62
- holidays/countries/bulgaria.py +9 -10
- holidays/countries/burkina_faso.py +8 -5
- holidays/countries/burundi.py +13 -12
- holidays/countries/cambodia.py +15 -24
- holidays/countries/cameroon.py +10 -7
- holidays/countries/canada.py +13 -12
- holidays/countries/chad.py +9 -6
- holidays/countries/chile.py +29 -28
- holidays/countries/china.py +39 -38
- holidays/countries/colombia.py +15 -20
- holidays/countries/congo.py +6 -7
- holidays/countries/costa_rica.py +11 -10
- holidays/countries/croatia.py +8 -5
- holidays/countries/cuba.py +30 -27
- holidays/countries/curacao.py +6 -4
- holidays/countries/cyprus.py +4 -5
- holidays/countries/czechia.py +7 -6
- holidays/countries/denmark.py +5 -6
- holidays/countries/djibouti.py +7 -3
- holidays/countries/dominica.py +18 -16
- holidays/countries/dominican_republic.py +6 -4
- holidays/countries/ecuador.py +5 -4
- holidays/countries/egypt.py +6 -11
- holidays/countries/el_salvador.py +6 -5
- holidays/countries/estonia.py +3 -1
- holidays/countries/eswatini.py +6 -4
- holidays/countries/ethiopia.py +20 -11
- holidays/countries/fiji.py +183 -0
- holidays/countries/finland.py +11 -10
- holidays/countries/france.py +6 -9
- holidays/countries/gabon.py +11 -8
- holidays/countries/georgia.py +7 -7
- holidays/countries/germany.py +11 -11
- holidays/countries/ghana.py +10 -6
- holidays/countries/greece.py +4 -5
- holidays/countries/greenland.py +5 -6
- holidays/countries/guam.py +6 -4
- holidays/countries/guatemala.py +7 -9
- holidays/countries/guernsey.py +37 -34
- holidays/countries/guinea.py +182 -0
- holidays/countries/haiti.py +6 -5
- holidays/countries/honduras.py +8 -4
- holidays/countries/hongkong.py +11 -8
- holidays/countries/hungary.py +26 -23
- holidays/countries/iceland.py +5 -4
- holidays/countries/india.py +14 -10
- holidays/countries/indonesia.py +57 -53
- holidays/countries/iran.py +12 -9
- holidays/countries/ireland.py +5 -4
- holidays/countries/isle_of_man.py +2 -2
- holidays/countries/israel.py +4 -5
- holidays/countries/italy.py +5 -4
- holidays/countries/ivory_coast.py +156 -0
- holidays/countries/jamaica.py +6 -4
- holidays/countries/japan.py +5 -5
- holidays/countries/jersey.py +29 -26
- holidays/countries/jordan.py +9 -6
- holidays/countries/kazakhstan.py +66 -51
- holidays/countries/kenya.py +22 -18
- holidays/countries/kuwait.py +10 -7
- holidays/countries/kyrgyzstan.py +7 -6
- holidays/countries/laos.py +21 -29
- holidays/countries/latvia.py +7 -5
- holidays/countries/lesotho.py +6 -5
- holidays/countries/liechtenstein.py +5 -5
- holidays/countries/lithuania.py +4 -5
- holidays/countries/luxembourg.py +5 -3
- holidays/countries/macau.py +32 -26
- holidays/countries/madagascar.py +5 -4
- holidays/countries/malawi.py +6 -4
- holidays/countries/malaysia.py +24 -18
- holidays/countries/maldives.py +10 -7
- holidays/countries/malta.py +10 -19
- holidays/countries/marshall_islands.py +6 -4
- holidays/countries/mauritania.py +9 -6
- holidays/countries/mexico.py +8 -7
- holidays/countries/moldova.py +6 -4
- holidays/countries/monaco.py +6 -4
- holidays/countries/montenegro.py +10 -7
- holidays/countries/morocco.py +9 -8
- holidays/countries/mozambique.py +3 -1
- holidays/countries/namibia.py +7 -5
- holidays/countries/netherlands.py +6 -6
- holidays/countries/new_zealand.py +3 -1
- holidays/countries/nicaragua.py +6 -5
- holidays/countries/nigeria.py +9 -5
- holidays/countries/north_macedonia.py +9 -5
- holidays/countries/northern_mariana_islands.py +6 -4
- holidays/countries/norway.py +15 -15
- holidays/countries/pakistan.py +41 -17
- holidays/countries/palau.py +13 -11
- holidays/countries/panama.py +9 -8
- holidays/countries/papua_new_guinea.py +25 -21
- holidays/countries/paraguay.py +10 -9
- holidays/countries/peru.py +4 -5
- holidays/countries/philippines.py +25 -21
- holidays/countries/poland.py +6 -5
- holidays/countries/portugal.py +13 -15
- holidays/countries/puerto_rico.py +6 -4
- holidays/countries/qatar.py +172 -0
- holidays/countries/romania.py +6 -4
- holidays/countries/russia.py +6 -4
- holidays/countries/saint_kitts_and_nevis.py +24 -22
- holidays/countries/saint_lucia.py +8 -7
- holidays/countries/samoa.py +7 -6
- holidays/countries/san_marino.py +4 -3
- holidays/countries/saudi_arabia.py +11 -15
- holidays/countries/serbia.py +3 -4
- holidays/countries/seychelles.py +22 -26
- holidays/countries/singapore.py +29 -39
- holidays/countries/slovakia.py +6 -5
- holidays/countries/slovenia.py +7 -6
- holidays/countries/south_africa.py +8 -6
- holidays/countries/south_korea.py +25 -32
- holidays/countries/spain.py +25 -24
- holidays/countries/sri_lanka.py +46 -42
- holidays/countries/sweden.py +20 -19
- holidays/countries/switzerland.py +6 -5
- holidays/countries/taiwan.py +50 -48
- holidays/countries/tanzania.py +28 -27
- holidays/countries/thailand.py +134 -142
- holidays/countries/timor_leste.py +20 -18
- holidays/countries/tonga.py +46 -42
- holidays/countries/tunisia.py +5 -3
- holidays/countries/turkey.py +11 -9
- holidays/countries/tuvalu.py +12 -11
- holidays/countries/ukraine.py +54 -54
- holidays/countries/united_arab_emirates.py +37 -30
- holidays/countries/united_kingdom.py +7 -6
- holidays/countries/united_states.py +50 -55
- holidays/countries/united_states_minor_outlying_islands.py +6 -4
- holidays/countries/united_states_virgin_islands.py +6 -4
- holidays/countries/uruguay.py +10 -9
- holidays/countries/uzbekistan.py +10 -7
- holidays/countries/vanuatu.py +7 -5
- holidays/countries/vatican_city.py +16 -15
- holidays/countries/venezuela.py +11 -14
- holidays/countries/vietnam.py +15 -11
- holidays/countries/zambia.py +8 -6
- holidays/countries/zimbabwe.py +6 -4
- holidays/deprecations/v1_incompatibility.py +1 -1
- holidays/financial/__init__.py +1 -1
- holidays/financial/brasil_bolsa_balcao.py +14 -13
- holidays/financial/european_central_bank.py +7 -6
- holidays/financial/ice_futures_europe.py +7 -6
- holidays/financial/ny_stock_exchange.py +13 -10
- holidays/groups/__init__.py +1 -1
- holidays/groups/balinese_saka.py +1 -1
- holidays/groups/buddhist.py +1 -1
- holidays/groups/chinese.py +1 -1
- holidays/groups/christian.py +1 -1
- holidays/groups/custom.py +1 -1
- holidays/groups/eastern.py +1 -1
- holidays/groups/hebrew.py +1 -1
- holidays/groups/hindu.py +1 -1
- holidays/groups/international.py +1 -1
- holidays/groups/islamic.py +12 -1
- holidays/groups/persian.py +1 -1
- holidays/groups/sinhala.py +1 -1
- holidays/groups/thai.py +1 -7
- holidays/helpers.py +1 -1
- holidays/holiday_base.py +366 -244
- holidays/ical.py +228 -0
- holidays/locale/ar_QA/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/en_CI/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/en_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/GN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/es/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/GN.mo +0 -0
- holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/pt_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/tet/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/ur_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/mixins.py +2 -2
- holidays/observed_holiday_base.py +5 -2
- holidays/registry.py +6 -1
- holidays/utils.py +151 -151
- holidays/version.py +2 -2
- holidays-0.70.dist-info/METADATA +1404 -0
- {holidays-0.69.dist-info → holidays-0.70.dist-info}/RECORD +235 -217
- {holidays-0.69.dist-info → holidays-0.70.dist-info}/WHEEL +1 -1
- holidays-0.69.dist-info/AUTHORS → holidays-0.70.dist-info/licenses/AUTHORS.md +6 -2
- {holidays-0.69.dist-info → holidays-0.70.dist-info/licenses}/LICENSE +1 -1
- holidays-0.69.dist-info/METADATA +0 -1085
- {holidays-0.69.dist-info → holidays-0.70.dist-info}/top_level.txt +0 -0
holidays/countries/slovenia.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,12 +19,13 @@ from holidays.holiday_base import HolidayBase
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class Slovenia(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
22
|
-
"""
|
|
22
|
+
"""Slovenia holidays.
|
|
23
|
+
|
|
23
24
|
References:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Slovenia>
|
|
26
|
+
* <https://sl.wikipedia.org/wiki/Dr%C5%BEavni_prazniki_v_Sloveniji>
|
|
27
|
+
* <https://www.uradni-list.si/glasilo-uradni-list-rs/vsebina/1991-01-1091/zakon-o-praznikih-in-dela-prostih-dnevih-v-republiki-sloveniji>
|
|
28
|
+
* <https://www.gov.si/teme/drzavni-prazniki-in-dela-prosti-dnevi/>
|
|
28
29
|
"""
|
|
29
30
|
|
|
30
31
|
country = "SI"
|
|
@@ -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,11 +16,13 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class SouthAfrica(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
"""South Africa holidays.
|
|
20
|
+
|
|
21
|
+
References:
|
|
22
|
+
* <https://www.gov.za/about-sa/public-holidays>
|
|
23
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_South_Africa>
|
|
24
|
+
* <https://www.gov.za/speeches/president-cyril-ramaphosa-progress-economic-recovery-30-oct-2023-0000>
|
|
25
|
+
* <https://www.gov.za/documents/notices/public-holidays-act-declaration-29-may-2024-public-holiday-23-feb-2024>
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
28
|
country = "ZA"
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -51,39 +51,31 @@ class SouthKorea(
|
|
|
51
51
|
InternationalHolidays,
|
|
52
52
|
StaticHolidays,
|
|
53
53
|
):
|
|
54
|
-
"""
|
|
54
|
+
"""South Korea holidays.
|
|
55
|
+
|
|
55
56
|
References:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_South_Korea>
|
|
58
|
+
* <https://www.law.go.kr/법령/관공서의%20공휴일에%20관한%20규정>
|
|
59
|
+
* <https://elaw.klri.re.kr/eng_service/lawView.do?lang=ENG&hseq=34678>
|
|
60
|
+
* <https://elaw.klri.re.kr/eng_service/%20lawView.do?hseq=38405&lang=ENG>
|
|
61
|
+
* <https://namu.wiki/w/대통령%20선거일>
|
|
62
|
+
* <https://namu.wiki/w/공휴일/대한민국>
|
|
63
|
+
* <https://namu.wiki/w/공휴일/대한민국/역사>
|
|
64
|
+
* <https://namu.wiki/w/대체%20휴일%20제도>
|
|
65
|
+
* [TH localization 1](https://overseas.mofa.go.kr/th-th/wpge/m_3133/contents.do)
|
|
66
|
+
* [TH localization 2](https://thailand.korean-culture.org/th/138/korea/38)
|
|
66
67
|
|
|
67
68
|
Checked With:
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
* <https://publicholidays.co.kr/ko/2020-dates/>
|
|
70
|
+
* <https://publicholidays.co.kr/ko/2022-dates/>
|
|
70
71
|
|
|
71
72
|
According to (3), the alt holidays in Korea are as follows:
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
* The alt holiday means next first non holiday after the holiday.
|
|
74
|
+
* Independence Movement Day, Liberation Day, National Foundation Day,
|
|
74
75
|
Hangul Day, Children's Day, Birthday of the Buddha, Christmas Day have
|
|
75
76
|
alt holiday if they fell on Saturday or Sunday.
|
|
76
|
-
|
|
77
|
+
* Korean New Year's Day, Korean Mid Autumn Day have alt holiday if they
|
|
77
78
|
fell on Sunday.
|
|
78
|
-
|
|
79
|
-
The alt holidays in Korea are as follows:
|
|
80
|
-
- The alt holiday means next first non holiday after the holiday.
|
|
81
|
-
- Independence Movement Day, Liberation Day, National Foundation Day,
|
|
82
|
-
Hangul Day, Children's Day, Birthday of the Buddha, Christmas Day have
|
|
83
|
-
alt holiday if they fell on Saturday or Sunday.
|
|
84
|
-
- Lunar New Year's Day, Korean Mid Autumn Day have alt holiday if they
|
|
85
|
-
fell on Sunday.
|
|
86
|
-
|
|
87
79
|
"""
|
|
88
80
|
|
|
89
81
|
country = "KR"
|
|
@@ -331,15 +323,16 @@ class SouthKoreaLunisolarHolidays(_CustomChineseHolidays):
|
|
|
331
323
|
|
|
332
324
|
|
|
333
325
|
class SouthKoreaStaticHolidays:
|
|
334
|
-
"""
|
|
326
|
+
"""South Korea special holidays.
|
|
327
|
+
|
|
335
328
|
References:
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
329
|
+
* <https://namu.wiki/w/임시공휴일> *
|
|
330
|
+
* <https://namu.wiki/w/공휴일/대한민국> **
|
|
331
|
+
* <https://namu.wiki/w/대체%20휴일%20제도>
|
|
339
332
|
|
|
340
|
-
|
|
333
|
+
1. Election Dates featured here are the ones prior to the proper recodification to
|
|
341
334
|
Article 34 of the Public Official Election Act(September 2006)
|
|
342
|
-
|
|
335
|
+
2. Sabang Day (사방의 날) was technically in the Public Holidays Act itself, but since it was
|
|
343
336
|
only celebrated in 1960, this is being put here.
|
|
344
337
|
"""
|
|
345
338
|
|
holidays/countries/spain.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
|
|
@@ -26,29 +26,28 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
|
26
26
|
class Spain(
|
|
27
27
|
ObservedHolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays, StaticHolidays
|
|
28
28
|
):
|
|
29
|
-
"""
|
|
30
|
-
Holidays checked with official sources for 2010-2023 only.
|
|
29
|
+
"""Spain holidays.
|
|
31
30
|
|
|
32
31
|
References:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
32
|
+
* <https://administracion.gob.es/pag_Home/atencionCiudadana/calendarios.html>
|
|
33
|
+
* [2010](https://www.boe.es/buscar/doc.php?id=BOE-A-2009-18477)
|
|
34
|
+
* [2011](https://www.boe.es/buscar/doc.php?id=BOE-A-2010-15722)
|
|
35
|
+
* [2012](https://www.boe.es/buscar/doc.php?id=BOE-A-2011-16116)
|
|
36
|
+
* [2013](https://www.boe.es/buscar/doc.php?id=BOE-A-2012-13644)
|
|
37
|
+
* [2014](https://www.boe.es/buscar/doc.php?id=BOE-A-2013-12147)
|
|
38
|
+
* [2015](https://www.boe.es/buscar/doc.php?id=BOE-A-2014-10823)
|
|
39
|
+
* [2016](https://www.boe.es/buscar/doc.php?id=BOE-A-2015-11348)
|
|
40
|
+
* [2017](https://www.boe.es/buscar/doc.php?id=BOE-A-2016-9244)
|
|
41
|
+
* [2018](https://www.boe.es/buscar/doc.php?id=BOE-A-2017-11639)
|
|
42
|
+
* [2019](https://www.boe.es/buscar/doc.php?id=BOE-A-2018-14369)
|
|
43
|
+
* [2020](https://www.boe.es/buscar/doc.php?id=BOE-A-2019-14552)
|
|
44
|
+
* [2021](https://www.boe.es/buscar/doc.php?id=BOE-A-2020-13343)
|
|
45
|
+
* [2022](https://www.boe.es/buscar/doc.php?id=BOE-A-2021-17113)
|
|
46
|
+
* [2023](https://www.boe.es/buscar/doc.php?id=BOE-A-2022-16755)
|
|
47
|
+
* [2024](https://www.boe.es/buscar/doc.php?id=BOE-A-2023-22014)
|
|
48
|
+
* [2025](https://www.boe.es/buscar/doc.php?id=BOE-A-2024-21316)
|
|
49
|
+
|
|
50
|
+
Holidays checked with official sources for 2010-2025 only.
|
|
52
51
|
"""
|
|
53
52
|
|
|
54
53
|
country = "ES"
|
|
@@ -80,8 +79,10 @@ class Spain(
|
|
|
80
79
|
|
|
81
80
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
82
81
|
"""
|
|
83
|
-
:
|
|
84
|
-
|
|
82
|
+
Args:
|
|
83
|
+
islamic_show_estimated:
|
|
84
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
85
|
+
if holiday date is estimated.
|
|
85
86
|
"""
|
|
86
87
|
ChristianHolidays.__init__(self)
|
|
87
88
|
InternationalHolidays.__init__(self)
|
holidays/countries/sri_lanka.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
|
|
@@ -49,30 +49,31 @@ class SriLanka(
|
|
|
49
49
|
SinhalaCalendarHolidays,
|
|
50
50
|
StaticHolidays,
|
|
51
51
|
):
|
|
52
|
-
"""
|
|
52
|
+
"""Sri Lanka holidays.
|
|
53
|
+
|
|
53
54
|
References:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
* [No. 29 of 1971 (Holidays Act)](http://www.commonlii.org/lk/legis/num_act/ha29o1971152)
|
|
56
|
+
* [No. 21 of 1991 (Amendment)](http://www.commonlii.org/lk/legis/num_act/ha21o1991232)
|
|
57
|
+
* <https://web.archive.org/web/20110722150724/http://www.pubad.gov.lk/Holidays/holidays%202003.htm>
|
|
58
|
+
* <https://web.archive.org/web/20111018053717/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202004.pdf>
|
|
59
|
+
* <https://web.archive.org/web/20241120204015/https://documents.gov.lk/en/calendar.php>
|
|
59
60
|
|
|
60
61
|
Cross-Checked With:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
62
|
+
* <https://web.archive.org/web/20111018053927/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202005.pdf>
|
|
63
|
+
* <https://web.archive.org/web/20111018061003/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202006.pdf>
|
|
64
|
+
* <https://web.archive.org/web/20110722150032/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202007.pdf>
|
|
65
|
+
* <https://web.archive.org/web/20111018071837/http://www.pubad.gov.lk/Holidays/PublicBankHolidays2008.pdf>
|
|
66
|
+
* <https://web.archive.org/web/20120309065711/http://www.pubad.gov.lk/Holidays/Public&BankHolidays2009.pdf>
|
|
67
|
+
* <https://web.archive.org/web/20111018071247/http://www.pubad.gov.lk/Holidays/Public&BankHolidays2010.pdf>
|
|
68
|
+
* <https://web.archive.org/web/20110722151043/http://www.pubad.gov.lk/Holidays/Public&BankHolidays2011.pdf>
|
|
69
|
+
* <https://web.archive.org/web/20111125074237/http://www.pubad.gov.lk/Holidays/Public&BankHolidays2012.pdf>
|
|
70
|
+
* <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2019>
|
|
71
|
+
* <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2020>
|
|
72
|
+
* <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2021>
|
|
73
|
+
* <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2022>
|
|
74
|
+
* <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2023>
|
|
75
|
+
* <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2024>
|
|
76
|
+
* <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2025>
|
|
76
77
|
"""
|
|
77
78
|
|
|
78
79
|
country = "LK"
|
|
@@ -89,8 +90,10 @@ class SriLanka(
|
|
|
89
90
|
|
|
90
91
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
91
92
|
"""
|
|
92
|
-
:
|
|
93
|
-
|
|
93
|
+
Args:
|
|
94
|
+
islamic_show_estimated:
|
|
95
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
96
|
+
if holiday date is estimated.
|
|
94
97
|
"""
|
|
95
98
|
ChristianHolidays.__init__(self)
|
|
96
99
|
HinduCalendarHolidays.__init__(self, SriLankaHinduHolidays)
|
|
@@ -370,25 +373,26 @@ class SriLankaIslamicHolidays(_CustomIslamicHolidays):
|
|
|
370
373
|
|
|
371
374
|
|
|
372
375
|
class SriLankaStaticHolidays:
|
|
373
|
-
"""
|
|
376
|
+
"""Sri Lanka special holdays.
|
|
377
|
+
|
|
374
378
|
References:
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
379
|
+
* <https://www.adaderana.lk/news.php?nid=13026>
|
|
380
|
+
* <https://www.adaderana.lk/news.php?nid=17539>
|
|
381
|
+
* <https://www.adaderana.lk/news.php?nid=22168>
|
|
382
|
+
* <https://www.adaderana.lk/news.php?nid=34870>
|
|
383
|
+
* <https://www.adaderana.lk/news.php?nid=55146>
|
|
384
|
+
* <https://www.adaderana.lk/news.php?nid=61437>
|
|
385
|
+
* <https://www.adaderana.lk/news.php?nid=64367>
|
|
386
|
+
* <https://www.adaderana.lk/news.php?nid=81686>
|
|
387
|
+
* <https://www.adaderana.lk/news.php?nid=82111>
|
|
388
|
+
* <https://www.adaderana.lk/news.php?nid=82979>
|
|
389
|
+
* <https://www.adaderana.lk/news.php?nid=83082>
|
|
390
|
+
* <https://www.adaderana.lk/news.php?nid=84035>
|
|
391
|
+
* <https://www.adaderana.lk/news.php?nid=98560>
|
|
392
|
+
* <https://www.adaderana.lk/news.php?nid=102125>
|
|
393
|
+
* <https://web.archive.org/web/20110722150724/http://www.pubad.gov.lk/Holidays/holidays%202003.htm>
|
|
394
|
+
* <https://web.archive.org/web/20111018053717/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202004.pdf>
|
|
395
|
+
* <https://web.archive.org/web/20241120204015/https://documents.gov.lk/en/calendar.php>
|
|
392
396
|
"""
|
|
393
397
|
|
|
394
398
|
# Adhi Binara Full Moon Poya Day.
|
holidays/countries/sweden.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -18,31 +18,32 @@ from holidays.holiday_base import HolidayBase
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Sweden(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
"""Sweden holidays.
|
|
22
|
+
|
|
23
|
+
References:
|
|
24
|
+
* <https://sv.wikipedia.org/wiki/Helgdagar_i_Sverige>
|
|
25
|
+
* <http://www.riksdagen.se/sv/dokument-lagar/dokument/svensk-forfattningssamling/lag-1989253-om-allmanna-helgdagar_sfs-1989-253>
|
|
26
|
+
* <https://sv.wikipedia.org/wiki/F%C3%B6rsta_maj>
|
|
27
|
+
* <https://sv.wikipedia.org/wiki/Sveriges_nationaldag>
|
|
28
|
+
* <https://sv.wikipedia.org/wiki/Midsommarafton>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
Note that holidays falling on a sunday is "lost", it will not be moved
|
|
32
|
+
to another day to make up for the collision.
|
|
33
|
+
|
|
34
|
+
In Sweden, ALL sundays are considered a holiday.
|
|
35
|
+
Initialize this class with `include_sundays=False` to not include sundays as a holiday.
|
|
36
36
|
"""
|
|
37
37
|
|
|
38
38
|
country = "SE"
|
|
39
39
|
default_language = "sv"
|
|
40
40
|
supported_languages = ("en_US", "sv", "th", "uk")
|
|
41
41
|
|
|
42
|
-
def __init__(self, include_sundays=True, *args, **kwargs):
|
|
42
|
+
def __init__(self, include_sundays: bool = True, *args, **kwargs):
|
|
43
43
|
"""
|
|
44
|
-
:
|
|
45
|
-
|
|
44
|
+
Args:
|
|
45
|
+
include_sundays:
|
|
46
|
+
Whether to consider sundays as a holiday (which they are in Sweden)
|
|
46
47
|
"""
|
|
47
48
|
self.include_sundays = include_sundays
|
|
48
49
|
ChristianHolidays.__init__(self)
|
|
@@ -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,11 +19,12 @@ from holidays.observed_holiday_base import ObservedHolidayBase, MON_ONLY, TUE_TO
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class Switzerland(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
22
|
-
"""
|
|
22
|
+
"""Switzerland holidays.
|
|
23
|
+
|
|
23
24
|
References:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
* <https://www.bj.admin.ch/dam/bj/de/data/publiservice/service/zivilprozessrecht/kant-feiertage.pdf>
|
|
26
|
+
* <https://de.wikipedia.org/wiki/Feiertage_in_der_Schweiz>
|
|
27
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland>
|
|
27
28
|
"""
|
|
28
29
|
|
|
29
30
|
country = "CH"
|
holidays/countries/taiwan.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
|
|
@@ -45,27 +45,28 @@ CHILDRENS_DAY_RULE = ObservedRule({MON: +1, TUE: -1, WED: -1, THU: +1, FRI: -1,
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
class Taiwan(ObservedHolidayBase, ChineseCalendarHolidays, InternationalHolidays, StaticHolidays):
|
|
48
|
-
"""
|
|
48
|
+
"""Taiwan holidays.
|
|
49
|
+
|
|
50
|
+
References:
|
|
51
|
+
* <https://zh.wikipedia.org/wiki/中華民國節日與歲時列表>
|
|
52
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Taiwan>
|
|
53
|
+
|
|
49
54
|
Commemorative Day and Day Implementation Method Amendments:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
Other References:
|
|
63
|
-
- https://zh.wikipedia.org/wiki/中華民國節日與歲時列表
|
|
64
|
-
- https://en.wikipedia.org/wiki/Public_holidays_in_Taiwan
|
|
55
|
+
* [Ministry of Interior (87) Order No. 8706459](https://zh.wikisource.org/wiki/紀念日及節日實施辦法_(民國87年))
|
|
56
|
+
* [Ministry of Interior (88) Order No. 8897074](https://zh.wikisource.org/wiki/紀念日及節日實施辦法_(民國88年))
|
|
57
|
+
* [Ministry of Interior (89) Order No. 8972185](https://zh.wikisource.org/wiki/紀念日及節日實施辦法_(民國89年2月))
|
|
58
|
+
* [Ministry of Interior (89) Order No. 8962562](https://zh.wikisource.org/wiki/紀念日及節日實施辦法_(民國89年12月))
|
|
59
|
+
* [Ministry of Interior Order No. 0950045320](https://law.moj.gov.tw/LawClass/LawOldVer.aspx?pcode=D0020033&lnndate=20060309&lser=001)
|
|
60
|
+
* [Ministry of Interior Order No. 0960110433](https://law.moj.gov.tw/LawClass/LawOldVer.aspx?pcode=D0020033&lnndate=20070711&lser=001)
|
|
61
|
+
* [Ministry of Interior Order No. 0960131407](https://law.moj.gov.tw/LawClass/LawOldVer.aspx?pcode=D0020033&lnndate=20070711&lser=001)
|
|
62
|
+
* [Ministry of Interior Order No. 0960155673](https://law.moj.gov.tw/LawClass/LawOldVer.aspx?pcode=D0020033&lnndate=20071003&lser=001)
|
|
63
|
+
* [Ministry of Interior Order No. 0990212117](https://law.moj.gov.tw/LawClass/LawOldVer.aspx?pcode=D0020033&lnndate=20101102&lser=001)
|
|
64
|
+
* [Ministry of Interior Order No. 1010307327 and 1030128812](https://law.moj.gov.tw/LawClass/LawOldVer.aspx?pcode=D0020033&lnndate=20120925&lser=001)
|
|
65
|
+
* [Ministry of Interior Order No. 1030182404](https://law.moj.gov.tw/LawClass/LawAll.aspx?pcode=D0020033)
|
|
65
66
|
|
|
66
67
|
Checked With:
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
* [DGPA Work Calendar (1998-2025; Chinese)](https://www.dgpa.gov.tw/informationlist?uid=30)
|
|
69
|
+
* [DGPA Work Calendar (2001-2025; English)](https://www.dgpa.gov.tw/en/informationlist?uid=353)
|
|
69
70
|
"""
|
|
70
71
|
|
|
71
72
|
country = "TW"
|
|
@@ -263,36 +264,37 @@ class TWN(Taiwan):
|
|
|
263
264
|
|
|
264
265
|
|
|
265
266
|
class TaiwanStaticHolidays:
|
|
266
|
-
"""
|
|
267
|
+
"""Taiwan special holidays.
|
|
268
|
+
|
|
267
269
|
DGPA, Executive Yuan Work Calendars:
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
270
|
+
* [1998](https://www.dgpa.gov.tw/information?uid=30&pid=4979)
|
|
271
|
+
* [1999](https://www.dgpa.gov.tw/information?uid=30&pid=4978)
|
|
272
|
+
* [2000](https://www.dgpa.gov.tw/information?uid=30&pid=4977)
|
|
273
|
+
* [2001](https://www.dgpa.gov.tw/en/information?uid=353&pid=6199)
|
|
274
|
+
* [2002](https://www.dgpa.gov.tw/en/information?uid=353&pid=6198)
|
|
275
|
+
* [2003](https://www.dgpa.gov.tw/en/information?uid=353&pid=6197)
|
|
276
|
+
* [2004](https://www.dgpa.gov.tw/en/information?uid=353&pid=6196)
|
|
277
|
+
* [2005](https://www.dgpa.gov.tw/en/information?uid=353&pid=6195)
|
|
278
|
+
* [2006](https://www.dgpa.gov.tw/en/information?uid=353&pid=6192)
|
|
279
|
+
* [2007](https://www.dgpa.gov.tw/en/information?uid=353&pid=6194)
|
|
280
|
+
* [2008](https://www.dgpa.gov.tw/en/information?uid=353&pid=6191)
|
|
281
|
+
* [2009](https://www.dgpa.gov.tw/en/information?uid=353&pid=6190)
|
|
282
|
+
* [2010](https://www.dgpa.gov.tw/en/information?uid=353&pid=6189)
|
|
283
|
+
* [2011](https://www.dgpa.gov.tw/en/information?uid=353&pid=6188)
|
|
284
|
+
* [2012](https://www.dgpa.gov.tw/en/information?uid=353&pid=6187)
|
|
285
|
+
* [2013](https://www.dgpa.gov.tw/en/information?uid=353&pid=6186)
|
|
286
|
+
* [2014](https://www.dgpa.gov.tw/en/information?uid=353&pid=6183)
|
|
287
|
+
* [2015](https://www.dgpa.gov.tw/en/information?uid=353&pid=6182)
|
|
288
|
+
* [2016](https://www.dgpa.gov.tw/en/information?uid=353&pid=6180)
|
|
289
|
+
* [2017](https://www.dgpa.gov.tw/en/information?uid=353&pid=6178)
|
|
290
|
+
* [2018](https://www.dgpa.gov.tw/en/information?uid=353&pid=7730)
|
|
291
|
+
* [2019](https://www.dgpa.gov.tw/en/information?uid=353&pid=8178)
|
|
292
|
+
* [2020](https://www.dgpa.gov.tw/en/information?uid=353&pid=9724)
|
|
293
|
+
* [2021](https://www.dgpa.gov.tw/en/information?uid=353&pid=10181)
|
|
294
|
+
* [2022](https://www.dgpa.gov.tw/en/information?uid=353&pid=10659)
|
|
295
|
+
* [2023](https://www.dgpa.gov.tw/en/information?uid=353&pid=11016)
|
|
296
|
+
* [2024](https://www.dgpa.gov.tw/en/information?uid=353&pid=11402)
|
|
297
|
+
* [2025](https://www.dgpa.gov.tw/en/information?uid=353&pid=11979)
|
|
296
298
|
"""
|
|
297
299
|
|
|
298
300
|
# Date format (see strftime() Format Codes).
|