holidays 0.69__py3-none-any.whl → 0.71__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- holidays/__init__.py +1 -1
- holidays/calendars/__init__.py +1 -1
- holidays/calendars/balinese_saka.py +3 -3
- holidays/calendars/buddhist.py +1 -1
- holidays/calendars/chinese.py +1 -1
- holidays/calendars/custom.py +1 -1
- holidays/calendars/gregorian.py +1 -1
- holidays/calendars/hebrew.py +1 -1
- holidays/calendars/hindu.py +1 -1
- holidays/calendars/islamic.py +161 -1
- holidays/calendars/julian.py +1 -1
- holidays/calendars/julian_revised.py +1 -1
- holidays/calendars/persian.py +1 -1
- holidays/calendars/sinhala.py +1 -1
- holidays/calendars/thai.py +309 -257
- holidays/constants.py +2 -1
- holidays/countries/__init__.py +10 -1
- holidays/countries/afghanistan.py +11 -7
- holidays/countries/albania.py +10 -7
- holidays/countries/algeria.py +10 -10
- holidays/countries/american_samoa.py +6 -4
- holidays/countries/andorra.py +5 -4
- holidays/countries/angola.py +15 -14
- holidays/countries/antigua_and_barbuda.py +145 -0
- holidays/countries/argentina.py +787 -169
- holidays/countries/armenia.py +5 -6
- holidays/countries/aruba.py +11 -9
- holidays/countries/australia.py +21 -20
- holidays/countries/austria.py +3 -1
- holidays/countries/azerbaijan.py +24 -19
- holidays/countries/bahamas.py +13 -11
- holidays/countries/bahrain.py +8 -7
- holidays/countries/bangladesh.py +5 -4
- holidays/countries/barbados.py +11 -9
- holidays/countries/belarus.py +15 -15
- holidays/countries/belgium.py +8 -6
- holidays/countries/belize.py +7 -6
- holidays/countries/bolivia.py +12 -11
- holidays/countries/bosnia_and_herzegovina.py +15 -11
- holidays/countries/botswana.py +8 -6
- holidays/countries/brazil.py +8 -7
- holidays/countries/brunei.py +50 -62
- holidays/countries/bulgaria.py +9 -10
- holidays/countries/burkina_faso.py +8 -5
- holidays/countries/burundi.py +13 -12
- holidays/countries/cambodia.py +15 -24
- holidays/countries/cameroon.py +10 -7
- holidays/countries/canada.py +13 -12
- holidays/countries/chad.py +9 -6
- holidays/countries/chile.py +29 -28
- holidays/countries/china.py +39 -38
- holidays/countries/colombia.py +15 -20
- holidays/countries/congo.py +6 -7
- holidays/countries/costa_rica.py +11 -10
- holidays/countries/croatia.py +8 -5
- holidays/countries/cuba.py +30 -27
- holidays/countries/curacao.py +6 -4
- holidays/countries/cyprus.py +4 -5
- holidays/countries/czechia.py +7 -6
- holidays/countries/denmark.py +5 -6
- holidays/countries/djibouti.py +7 -3
- holidays/countries/dominica.py +18 -16
- holidays/countries/dominican_republic.py +6 -4
- holidays/countries/ecuador.py +5 -4
- holidays/countries/egypt.py +6 -11
- holidays/countries/el_salvador.py +6 -5
- holidays/countries/estonia.py +3 -1
- holidays/countries/eswatini.py +6 -4
- holidays/countries/ethiopia.py +20 -11
- holidays/countries/fiji.py +183 -0
- holidays/countries/finland.py +11 -10
- holidays/countries/france.py +7 -10
- holidays/countries/french_southern_territories.py +53 -0
- holidays/countries/gabon.py +11 -8
- holidays/countries/georgia.py +7 -7
- holidays/countries/germany.py +11 -11
- holidays/countries/ghana.py +10 -6
- holidays/countries/greece.py +4 -5
- holidays/countries/greenland.py +5 -6
- holidays/countries/guam.py +6 -4
- holidays/countries/guatemala.py +7 -9
- holidays/countries/guernsey.py +37 -34
- holidays/countries/guinea.py +182 -0
- holidays/countries/haiti.py +6 -5
- holidays/countries/honduras.py +8 -4
- holidays/countries/hongkong.py +11 -8
- holidays/countries/hungary.py +26 -23
- holidays/countries/iceland.py +5 -4
- holidays/countries/india.py +14 -10
- holidays/countries/indonesia.py +57 -53
- holidays/countries/iran.py +12 -9
- holidays/countries/ireland.py +5 -4
- holidays/countries/isle_of_man.py +2 -2
- holidays/countries/israel.py +4 -5
- holidays/countries/italy.py +5 -4
- holidays/countries/ivory_coast.py +156 -0
- holidays/countries/jamaica.py +6 -4
- holidays/countries/japan.py +5 -5
- holidays/countries/jersey.py +29 -26
- holidays/countries/jordan.py +9 -6
- holidays/countries/kazakhstan.py +66 -51
- holidays/countries/kenya.py +22 -18
- holidays/countries/kuwait.py +10 -7
- holidays/countries/kyrgyzstan.py +7 -6
- holidays/countries/laos.py +21 -29
- holidays/countries/latvia.py +7 -5
- holidays/countries/lesotho.py +6 -5
- holidays/countries/liechtenstein.py +5 -5
- holidays/countries/lithuania.py +4 -5
- holidays/countries/luxembourg.py +5 -3
- holidays/countries/macau.py +32 -26
- holidays/countries/madagascar.py +5 -4
- holidays/countries/malawi.py +6 -4
- holidays/countries/malaysia.py +29 -19
- holidays/countries/maldives.py +10 -7
- holidays/countries/malta.py +10 -19
- holidays/countries/marshall_islands.py +6 -4
- holidays/countries/mauritania.py +9 -6
- holidays/countries/mexico.py +8 -7
- holidays/countries/moldova.py +6 -4
- holidays/countries/monaco.py +6 -4
- holidays/countries/montenegro.py +10 -7
- holidays/countries/morocco.py +9 -8
- holidays/countries/mozambique.py +3 -1
- holidays/countries/namibia.py +7 -5
- holidays/countries/netherlands.py +6 -6
- holidays/countries/new_zealand.py +3 -1
- holidays/countries/nicaragua.py +6 -5
- holidays/countries/nigeria.py +9 -5
- holidays/countries/north_macedonia.py +9 -5
- holidays/countries/northern_mariana_islands.py +6 -4
- holidays/countries/norway.py +15 -15
- holidays/countries/oman.py +185 -0
- holidays/countries/pakistan.py +48 -17
- holidays/countries/palau.py +13 -11
- holidays/countries/panama.py +9 -8
- holidays/countries/papua_new_guinea.py +25 -21
- holidays/countries/paraguay.py +10 -9
- holidays/countries/peru.py +4 -5
- holidays/countries/philippines.py +25 -21
- holidays/countries/poland.py +6 -5
- holidays/countries/portugal.py +13 -15
- holidays/countries/puerto_rico.py +6 -4
- holidays/countries/qatar.py +172 -0
- holidays/countries/romania.py +6 -4
- holidays/countries/russia.py +6 -4
- holidays/countries/saint_kitts_and_nevis.py +24 -22
- holidays/countries/saint_lucia.py +8 -7
- holidays/countries/samoa.py +7 -6
- holidays/countries/san_marino.py +4 -3
- holidays/countries/saudi_arabia.py +11 -15
- holidays/countries/serbia.py +3 -4
- holidays/countries/seychelles.py +22 -26
- holidays/countries/sierra_leone.py +149 -0
- holidays/countries/singapore.py +29 -39
- holidays/countries/slovakia.py +6 -5
- holidays/countries/slovenia.py +7 -6
- holidays/countries/south_africa.py +8 -6
- holidays/countries/south_korea.py +39 -47
- holidays/countries/spain.py +25 -24
- holidays/countries/sri_lanka.py +46 -42
- holidays/countries/suriname.py +227 -0
- holidays/countries/sweden.py +20 -19
- holidays/countries/switzerland.py +6 -5
- holidays/countries/taiwan.py +52 -49
- holidays/countries/tanzania.py +28 -27
- holidays/countries/thailand.py +134 -142
- holidays/countries/timor_leste.py +20 -18
- holidays/countries/tonga.py +46 -42
- holidays/countries/tunisia.py +5 -3
- holidays/countries/turkey.py +11 -9
- holidays/countries/tuvalu.py +12 -11
- holidays/countries/ukraine.py +54 -54
- holidays/countries/united_arab_emirates.py +37 -30
- holidays/countries/united_kingdom.py +7 -6
- holidays/countries/united_states.py +50 -55
- holidays/countries/united_states_minor_outlying_islands.py +6 -4
- holidays/countries/united_states_virgin_islands.py +6 -4
- holidays/countries/uruguay.py +10 -9
- holidays/countries/uzbekistan.py +10 -7
- holidays/countries/vanuatu.py +7 -5
- holidays/countries/vatican_city.py +16 -15
- holidays/countries/venezuela.py +11 -14
- holidays/countries/vietnam.py +15 -11
- holidays/countries/zambia.py +8 -6
- holidays/countries/zimbabwe.py +6 -4
- holidays/deprecations/v1_incompatibility.py +1 -1
- holidays/financial/__init__.py +1 -1
- holidays/financial/brasil_bolsa_balcao.py +14 -13
- holidays/financial/european_central_bank.py +7 -6
- holidays/financial/ice_futures_europe.py +7 -6
- holidays/financial/ny_stock_exchange.py +13 -10
- holidays/groups/__init__.py +1 -1
- holidays/groups/balinese_saka.py +1 -1
- holidays/groups/buddhist.py +1 -1
- holidays/groups/chinese.py +1 -1
- holidays/groups/christian.py +1 -1
- holidays/groups/custom.py +1 -1
- holidays/groups/eastern.py +1 -1
- holidays/groups/hebrew.py +1 -1
- holidays/groups/hindu.py +1 -1
- holidays/groups/international.py +1 -1
- holidays/groups/islamic.py +22 -1
- holidays/groups/persian.py +1 -1
- holidays/groups/sinhala.py +1 -1
- holidays/groups/thai.py +1 -7
- holidays/helpers.py +1 -1
- holidays/holiday_base.py +393 -245
- holidays/ical.py +228 -0
- holidays/locale/ar/LC_MESSAGES/OM.mo +0 -0
- holidays/locale/ar_QA/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/en_CI/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/en_SL/LC_MESSAGES/SL.mo +0 -0
- holidays/locale/en_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/GN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/OM.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/SL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/SR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TF.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/es/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/GN.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/TF.mo +0 -0
- holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/nl/LC_MESSAGES/SR.mo +0 -0
- holidays/locale/pt_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/tet/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/TF.mo +0 -0
- holidays/locale/ur_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/mixins.py +2 -2
- holidays/observed_holiday_base.py +10 -3
- holidays/registry.py +10 -1
- holidays/utils.py +203 -151
- holidays/version.py +2 -2
- holidays-0.71.dist-info/METADATA +1432 -0
- {holidays-0.69.dist-info → holidays-0.71.dist-info}/RECORD +248 -217
- {holidays-0.69.dist-info → holidays-0.71.dist-info}/WHEEL +1 -1
- holidays-0.69.dist-info/AUTHORS → holidays-0.71.dist-info/licenses/AUTHORS.md +9 -2
- {holidays-0.69.dist-info → holidays-0.71.dist-info/licenses}/LICENSE +1 -1
- holidays-0.69.dist-info/METADATA +0 -1085
- {holidays-0.69.dist-info → holidays-0.71.dist-info}/top_level.txt +0 -0
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.
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# holidays
|
|
2
|
+
# --------
|
|
3
|
+
# A fast, efficient Python library for generating country, province and state
|
|
4
|
+
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
|
+
# specific date is a holiday as fast and flexible as possible.
|
|
6
|
+
#
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
|
+
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
|
+
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
|
+
# Website: https://github.com/vacanza/holidays
|
|
11
|
+
# License: MIT (see LICENSE file)
|
|
12
|
+
|
|
13
|
+
from gettext import gettext as tr
|
|
14
|
+
|
|
15
|
+
from holidays import HolidayBase
|
|
16
|
+
from holidays.calendars import _CustomHinduHolidays, _CustomIslamicHolidays
|
|
17
|
+
from holidays.calendars.gregorian import MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV
|
|
18
|
+
from holidays.groups import (
|
|
19
|
+
ChineseCalendarHolidays,
|
|
20
|
+
ChristianHolidays,
|
|
21
|
+
HinduCalendarHolidays,
|
|
22
|
+
InternationalHolidays,
|
|
23
|
+
IslamicHolidays,
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class Suriname(
|
|
28
|
+
HolidayBase,
|
|
29
|
+
ChineseCalendarHolidays,
|
|
30
|
+
ChristianHolidays,
|
|
31
|
+
HinduCalendarHolidays,
|
|
32
|
+
InternationalHolidays,
|
|
33
|
+
IslamicHolidays,
|
|
34
|
+
):
|
|
35
|
+
"""Suriname holidays.
|
|
36
|
+
|
|
37
|
+
References:
|
|
38
|
+
* [Besluit Vrije Dagen 1971](https://web.archive.org/web/20250411201210/https://www.sris.sr/wp-content/uploads/2022/10/Besluit-Vrije-dagen-GB-1971-no-78.pdf)
|
|
39
|
+
* https://web.archive.org/web/20240416223555/https://gov.sr/wp-content/uploads/2022/09/arbeidswet.pdf
|
|
40
|
+
* [S.B. 2007 no. 98](https://web.archive.org/web/20250411204836/https://www.sris.sr/wp-content/uploads/2021/10/SB-2007-no-98-besluit-vrije-dagen.pdf)
|
|
41
|
+
* [S.B. 2012 no. 21](https://web.archive.org/web/20250411204754/https://www.sris.sr/wp-content/uploads/2021/10/SB-2012-no-21-besluit-vrije-dagen.pdf)
|
|
42
|
+
* [S.B. 2021 no. 27](https://web.archive.org/web/20250411210516/https://www.sris.sr/wp-content/uploads/2021/03/S.B.-2021-no.-27-houdende-nadere-wijziging-van-het-Besluit-Vrije-Dagen-1971.pdf)
|
|
43
|
+
* [S.B. 2024 no. 167](https://web.archive.org/web/20250411211129/https://www.sris.sr/wp-content/uploads/2025/01/S.B.-2024-no.-167-Algemene-termijnenwet.pdf)
|
|
44
|
+
|
|
45
|
+
Note:
|
|
46
|
+
The oldest decree available online that underpins the public holidays defined here
|
|
47
|
+
for Suriname is Besluit Vrije Dagen 1971 of April 22, 1971.
|
|
48
|
+
|
|
49
|
+
The S.B. 2024 no. 167 law only applies to prolongations of terms specified in contracts
|
|
50
|
+
and other similar legal documents, and does not apply to labor agreements (and days off).
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
country = "SR"
|
|
54
|
+
default_language = "nl"
|
|
55
|
+
# %s (estimated).
|
|
56
|
+
estimated_label = tr("%s (geschat)")
|
|
57
|
+
start_year = 1972
|
|
58
|
+
supported_languages = ("en_US", "nl")
|
|
59
|
+
|
|
60
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
61
|
+
"""
|
|
62
|
+
Args:
|
|
63
|
+
islamic_show_estimated:
|
|
64
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
65
|
+
if holiday date is estimated.
|
|
66
|
+
"""
|
|
67
|
+
ChineseCalendarHolidays.__init__(self)
|
|
68
|
+
ChristianHolidays.__init__(self)
|
|
69
|
+
HinduCalendarHolidays.__init__(self, cls=SurinameHinduHolidays)
|
|
70
|
+
InternationalHolidays.__init__(self)
|
|
71
|
+
IslamicHolidays.__init__(
|
|
72
|
+
self, cls=SurinameIslamicHolidays, show_estimated=islamic_show_estimated
|
|
73
|
+
)
|
|
74
|
+
super().__init__(*args, **kwargs)
|
|
75
|
+
|
|
76
|
+
def _populate_public_holidays(self):
|
|
77
|
+
# New Year's Day.
|
|
78
|
+
self._add_new_years_day(tr("Nieuwjaarsdag"))
|
|
79
|
+
|
|
80
|
+
if 1981 <= self._year <= 1992 or 2012 <= self._year <= 2020:
|
|
81
|
+
# Day of Liberation and Renewal.
|
|
82
|
+
self._add_holiday_feb_25(tr("Dag van Bevrijding en Vernieuwing"))
|
|
83
|
+
|
|
84
|
+
# Good Friday.
|
|
85
|
+
self._add_good_friday(tr("Goede Vrijdag"))
|
|
86
|
+
|
|
87
|
+
# Easter Monday.
|
|
88
|
+
self._add_easter_monday(tr("Tweede Paasdag"))
|
|
89
|
+
|
|
90
|
+
if self._year <= 1975:
|
|
91
|
+
# Birthday of H.M. the Queen.
|
|
92
|
+
self._add_holiday_apr_30(tr("Verjaardag van H.M. de Koningin"))
|
|
93
|
+
|
|
94
|
+
# Labor Day.
|
|
95
|
+
self._add_labor_day(tr("Dag van de Arbeid"))
|
|
96
|
+
|
|
97
|
+
self._add_holiday_jul_1(
|
|
98
|
+
# Day of Freedoms.
|
|
99
|
+
tr("Keti Koti Dey") if 2008 <= self._year <= 2024 else tr("Dag der Vrijheden")
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
if self._year >= 2007:
|
|
103
|
+
# Indigenous People Day.
|
|
104
|
+
self._add_holiday_aug_9(tr("Dag der Inheemsen"))
|
|
105
|
+
|
|
106
|
+
if self._year >= 2012:
|
|
107
|
+
# Day of the Maroons.
|
|
108
|
+
self._add_holiday_oct_10(tr("Dag der Marrons"))
|
|
109
|
+
|
|
110
|
+
if self._year >= 1976:
|
|
111
|
+
name = (
|
|
112
|
+
# Independence Day.
|
|
113
|
+
tr("Onafhankelijkheidsdag")
|
|
114
|
+
if self._year >= 2008
|
|
115
|
+
# Republic Day.
|
|
116
|
+
else tr("Dag van de Republiek")
|
|
117
|
+
)
|
|
118
|
+
self._add_holiday_nov_25(name)
|
|
119
|
+
|
|
120
|
+
# Christmas Day.
|
|
121
|
+
self._add_christmas_day(tr("Eerste Kerstdag"))
|
|
122
|
+
|
|
123
|
+
# Second Day of Christmas.
|
|
124
|
+
self._add_christmas_day_two(tr("Tweede Kerstdag"))
|
|
125
|
+
|
|
126
|
+
# Holi.
|
|
127
|
+
self._add_holi(tr("Holi-Phagwa"))
|
|
128
|
+
|
|
129
|
+
if self._year >= 2012:
|
|
130
|
+
# Diwali.
|
|
131
|
+
self._add_diwali(tr("Divali"))
|
|
132
|
+
|
|
133
|
+
# Eid al-Fitr.
|
|
134
|
+
self._add_eid_al_fitr_day(tr("Ied-Ul-Fitre"))
|
|
135
|
+
|
|
136
|
+
if self._year >= 2012:
|
|
137
|
+
# Eid al-Adha.
|
|
138
|
+
self._add_eid_al_adha_day(tr("Ied-Ul-Adha"))
|
|
139
|
+
|
|
140
|
+
if self._year >= 2022:
|
|
141
|
+
# Chinese New Year.
|
|
142
|
+
self._add_chinese_new_years_day(tr("Chinees Nieuwjaar"))
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
class SurinameHinduHolidays(_CustomHinduHolidays):
|
|
146
|
+
# https://www.timeanddate.com/holidays/suriname/holi-phagwa
|
|
147
|
+
HOLI_DATES = {
|
|
148
|
+
2015: (MAR, 6),
|
|
149
|
+
2016: (MAR, 23),
|
|
150
|
+
2017: (MAR, 12),
|
|
151
|
+
2018: (MAR, 2),
|
|
152
|
+
2019: (MAR, 21),
|
|
153
|
+
2020: (MAR, 9),
|
|
154
|
+
2021: (MAR, 28),
|
|
155
|
+
2022: (MAR, 18),
|
|
156
|
+
2023: (MAR, 7),
|
|
157
|
+
2024: (MAR, 25),
|
|
158
|
+
2025: (MAR, 14),
|
|
159
|
+
2026: (MAR, 3),
|
|
160
|
+
2027: (MAR, 22),
|
|
161
|
+
2028: (MAR, 11),
|
|
162
|
+
2029: (MAR, 28),
|
|
163
|
+
2030: (MAR, 19),
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
# https://www.timeanddate.com/holidays/suriname/diwali
|
|
167
|
+
DIWALI_DATES = {
|
|
168
|
+
2014: (OCT, 23),
|
|
169
|
+
2015: (NOV, 11),
|
|
170
|
+
2016: (OCT, 30),
|
|
171
|
+
2017: (OCT, 19),
|
|
172
|
+
2018: (NOV, 7),
|
|
173
|
+
2019: (OCT, 27),
|
|
174
|
+
2020: (NOV, 14),
|
|
175
|
+
2021: (NOV, 4),
|
|
176
|
+
2022: (OCT, 24),
|
|
177
|
+
2023: (NOV, 12),
|
|
178
|
+
2024: (OCT, 31),
|
|
179
|
+
2025: (OCT, 20),
|
|
180
|
+
2026: (NOV, 8),
|
|
181
|
+
2027: (OCT, 28),
|
|
182
|
+
2028: (OCT, 17),
|
|
183
|
+
2029: (NOV, 5),
|
|
184
|
+
2030: (OCT, 25),
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
class SurinameIslamicHolidays(_CustomIslamicHolidays):
|
|
189
|
+
# https://www.timeanddate.com/holidays/suriname/eid-al-fitr
|
|
190
|
+
EID_AL_FITR_DATES = {
|
|
191
|
+
2014: (JUL, 29),
|
|
192
|
+
2015: (JUL, 18),
|
|
193
|
+
2016: (JUL, 7),
|
|
194
|
+
2017: (JUN, 26),
|
|
195
|
+
2018: (JUN, 15),
|
|
196
|
+
2019: (JUN, 5),
|
|
197
|
+
2020: (MAY, 24),
|
|
198
|
+
2021: (MAY, 13),
|
|
199
|
+
2022: (MAY, 2),
|
|
200
|
+
2023: (APR, 22),
|
|
201
|
+
2024: (APR, 10),
|
|
202
|
+
2025: (MAR, 31),
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
# https://www.timeanddate.com/holidays/suriname/eid-al-adha
|
|
206
|
+
EID_AL_ADHA_DATES = {
|
|
207
|
+
2014: (OCT, 5),
|
|
208
|
+
2015: (SEP, 24),
|
|
209
|
+
2016: (SEP, 13),
|
|
210
|
+
2017: (SEP, 2),
|
|
211
|
+
2018: (AUG, 21),
|
|
212
|
+
2019: (AUG, 12),
|
|
213
|
+
2020: (JUL, 31),
|
|
214
|
+
2021: (JUL, 20),
|
|
215
|
+
2022: (JUL, 9),
|
|
216
|
+
2023: (JUN, 29),
|
|
217
|
+
2024: (JUN, 16),
|
|
218
|
+
2025: (JUN, 7),
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
class SR(Suriname):
|
|
223
|
+
pass
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
class SUR(Suriname):
|
|
227
|
+
pass
|
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
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
from datetime import date
|
|
14
14
|
from gettext import gettext as tr
|
|
15
|
+
from typing import Optional
|
|
15
16
|
|
|
16
17
|
from holidays.calendars.gregorian import (
|
|
17
18
|
JAN,
|
|
@@ -45,27 +46,28 @@ CHILDRENS_DAY_RULE = ObservedRule({MON: +1, TUE: -1, WED: -1, THU: +1, FRI: -1,
|
|
|
45
46
|
|
|
46
47
|
|
|
47
48
|
class Taiwan(ObservedHolidayBase, ChineseCalendarHolidays, InternationalHolidays, StaticHolidays):
|
|
48
|
-
"""
|
|
49
|
+
"""Taiwan holidays.
|
|
50
|
+
|
|
51
|
+
References:
|
|
52
|
+
* <https://zh.wikipedia.org/wiki/中華民國節日與歲時列表>
|
|
53
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Taiwan>
|
|
54
|
+
|
|
49
55
|
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
|
|
56
|
+
* [Ministry of Interior (87) Order No. 8706459](https://zh.wikisource.org/wiki/紀念日及節日實施辦法_(民國87年))
|
|
57
|
+
* [Ministry of Interior (88) Order No. 8897074](https://zh.wikisource.org/wiki/紀念日及節日實施辦法_(民國88年))
|
|
58
|
+
* [Ministry of Interior (89) Order No. 8972185](https://zh.wikisource.org/wiki/紀念日及節日實施辦法_(民國89年2月))
|
|
59
|
+
* [Ministry of Interior (89) Order No. 8962562](https://zh.wikisource.org/wiki/紀念日及節日實施辦法_(民國89年12月))
|
|
60
|
+
* [Ministry of Interior Order No. 0950045320](https://law.moj.gov.tw/LawClass/LawOldVer.aspx?pcode=D0020033&lnndate=20060309&lser=001)
|
|
61
|
+
* [Ministry of Interior Order No. 0960110433](https://law.moj.gov.tw/LawClass/LawOldVer.aspx?pcode=D0020033&lnndate=20070711&lser=001)
|
|
62
|
+
* [Ministry of Interior Order No. 0960131407](https://law.moj.gov.tw/LawClass/LawOldVer.aspx?pcode=D0020033&lnndate=20070711&lser=001)
|
|
63
|
+
* [Ministry of Interior Order No. 0960155673](https://law.moj.gov.tw/LawClass/LawOldVer.aspx?pcode=D0020033&lnndate=20071003&lser=001)
|
|
64
|
+
* [Ministry of Interior Order No. 0990212117](https://law.moj.gov.tw/LawClass/LawOldVer.aspx?pcode=D0020033&lnndate=20101102&lser=001)
|
|
65
|
+
* [Ministry of Interior Order No. 1010307327 and 1030128812](https://law.moj.gov.tw/LawClass/LawOldVer.aspx?pcode=D0020033&lnndate=20120925&lser=001)
|
|
66
|
+
* [Ministry of Interior Order No. 1030182404](https://law.moj.gov.tw/LawClass/LawAll.aspx?pcode=D0020033)
|
|
65
67
|
|
|
66
68
|
Checked With:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
* [DGPA Work Calendar (1998-2025; Chinese)](https://www.dgpa.gov.tw/informationlist?uid=30)
|
|
70
|
+
* [DGPA Work Calendar (2001-2025; English)](https://www.dgpa.gov.tw/en/informationlist?uid=353)
|
|
69
71
|
"""
|
|
70
72
|
|
|
71
73
|
country = "TW"
|
|
@@ -85,7 +87,7 @@ class Taiwan(ObservedHolidayBase, ChineseCalendarHolidays, InternationalHolidays
|
|
|
85
87
|
super().__init__(*args, **kwargs)
|
|
86
88
|
|
|
87
89
|
def _populate_observed(
|
|
88
|
-
self, dts: set[date], rule: ObservedRule = None, since: int = 2015
|
|
90
|
+
self, dts: set[date], rule: Optional[ObservedRule] = None, since: int = 2015
|
|
89
91
|
) -> None:
|
|
90
92
|
"""
|
|
91
93
|
Taiwan's General Observance Rule first started in 2015 as per
|
|
@@ -263,36 +265,37 @@ class TWN(Taiwan):
|
|
|
263
265
|
|
|
264
266
|
|
|
265
267
|
class TaiwanStaticHolidays:
|
|
266
|
-
"""
|
|
268
|
+
"""Taiwan special holidays.
|
|
269
|
+
|
|
267
270
|
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
|
-
|
|
271
|
+
* [1998](https://www.dgpa.gov.tw/information?uid=30&pid=4979)
|
|
272
|
+
* [1999](https://www.dgpa.gov.tw/information?uid=30&pid=4978)
|
|
273
|
+
* [2000](https://www.dgpa.gov.tw/information?uid=30&pid=4977)
|
|
274
|
+
* [2001](https://www.dgpa.gov.tw/en/information?uid=353&pid=6199)
|
|
275
|
+
* [2002](https://www.dgpa.gov.tw/en/information?uid=353&pid=6198)
|
|
276
|
+
* [2003](https://www.dgpa.gov.tw/en/information?uid=353&pid=6197)
|
|
277
|
+
* [2004](https://www.dgpa.gov.tw/en/information?uid=353&pid=6196)
|
|
278
|
+
* [2005](https://www.dgpa.gov.tw/en/information?uid=353&pid=6195)
|
|
279
|
+
* [2006](https://www.dgpa.gov.tw/en/information?uid=353&pid=6192)
|
|
280
|
+
* [2007](https://www.dgpa.gov.tw/en/information?uid=353&pid=6194)
|
|
281
|
+
* [2008](https://www.dgpa.gov.tw/en/information?uid=353&pid=6191)
|
|
282
|
+
* [2009](https://www.dgpa.gov.tw/en/information?uid=353&pid=6190)
|
|
283
|
+
* [2010](https://www.dgpa.gov.tw/en/information?uid=353&pid=6189)
|
|
284
|
+
* [2011](https://www.dgpa.gov.tw/en/information?uid=353&pid=6188)
|
|
285
|
+
* [2012](https://www.dgpa.gov.tw/en/information?uid=353&pid=6187)
|
|
286
|
+
* [2013](https://www.dgpa.gov.tw/en/information?uid=353&pid=6186)
|
|
287
|
+
* [2014](https://www.dgpa.gov.tw/en/information?uid=353&pid=6183)
|
|
288
|
+
* [2015](https://www.dgpa.gov.tw/en/information?uid=353&pid=6182)
|
|
289
|
+
* [2016](https://www.dgpa.gov.tw/en/information?uid=353&pid=6180)
|
|
290
|
+
* [2017](https://www.dgpa.gov.tw/en/information?uid=353&pid=6178)
|
|
291
|
+
* [2018](https://www.dgpa.gov.tw/en/information?uid=353&pid=7730)
|
|
292
|
+
* [2019](https://www.dgpa.gov.tw/en/information?uid=353&pid=8178)
|
|
293
|
+
* [2020](https://www.dgpa.gov.tw/en/information?uid=353&pid=9724)
|
|
294
|
+
* [2021](https://www.dgpa.gov.tw/en/information?uid=353&pid=10181)
|
|
295
|
+
* [2022](https://www.dgpa.gov.tw/en/information?uid=353&pid=10659)
|
|
296
|
+
* [2023](https://www.dgpa.gov.tw/en/information?uid=353&pid=11016)
|
|
297
|
+
* [2024](https://www.dgpa.gov.tw/en/information?uid=353&pid=11402)
|
|
298
|
+
* [2025](https://www.dgpa.gov.tw/en/information?uid=353&pid=11979)
|
|
296
299
|
"""
|
|
297
300
|
|
|
298
301
|
# Date format (see strftime() Format Codes).
|