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/indonesia.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
|
|
@@ -41,13 +41,14 @@ class Indonesia(
|
|
|
41
41
|
IslamicHolidays,
|
|
42
42
|
StaticHolidays,
|
|
43
43
|
):
|
|
44
|
-
"""
|
|
44
|
+
"""Indonesia holidays.
|
|
45
|
+
|
|
45
46
|
References:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Indonesia>
|
|
48
|
+
* <https://id.wikipedia.org/wiki/Hari_libur_di_Indonesia>
|
|
49
|
+
* <https://www.liburnasional.com/sejarah/>
|
|
50
|
+
* [1963-2025](https://id.wikipedia.org/wiki/Indonesia_dalam_tahun_1963)
|
|
51
|
+
* <https://www.timeanddate.com/holidays/indonesia>
|
|
51
52
|
"""
|
|
52
53
|
|
|
53
54
|
country = "ID"
|
|
@@ -64,8 +65,10 @@ class Indonesia(
|
|
|
64
65
|
|
|
65
66
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
66
67
|
"""
|
|
67
|
-
:
|
|
68
|
-
|
|
68
|
+
Args:
|
|
69
|
+
islamic_show_estimated:
|
|
70
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
71
|
+
if holiday date is estimated.
|
|
69
72
|
"""
|
|
70
73
|
BalineseSakaCalendarHolidays.__init__(self)
|
|
71
74
|
BuddhistCalendarHolidays.__init__(self, cls=IndonesiaBuddhistHolidays, show_estimated=True)
|
|
@@ -587,53 +590,54 @@ class IndonesiaIslamicHolidays(_CustomIslamicHolidays):
|
|
|
587
590
|
|
|
588
591
|
|
|
589
592
|
class IndonesiaStaticHolidays:
|
|
590
|
-
"""
|
|
593
|
+
"""Indonesia special holidays.
|
|
594
|
+
|
|
591
595
|
References (Election Days):
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
596
|
+
* <https://peraturan.bpk.go.id/Details/58370/keppres-no-53-tahun-1999>
|
|
597
|
+
* <https://peraturan.bpk.go.id/Details/55580/keppres-no-26-tahun-2004>
|
|
598
|
+
* <https://peraturan.bpk.go.id/Details/55662/keppres-no-55-tahun-2004>
|
|
599
|
+
* <https://peraturan.bpk.go.id/Details/55763/keppres-no-75-tahun-2004>
|
|
600
|
+
* <https://peraturan.bpk.go.id/Details/55345/keppres-no-7-tahun-2009>
|
|
601
|
+
* <https://peraturan.bpk.go.id/Details/55369/keppres-no-17-tahun-2009>
|
|
602
|
+
* <https://peraturan.bpk.go.id/Details/57563/keppres-no-14-tahun-2014>
|
|
603
|
+
* <https://peraturan.bpk.go.id/Details/57581/keppres-no-24-tahun-2014>
|
|
604
|
+
* <https://peraturan.bpk.go.id/Details/54477/keppres-no-25-tahun-2015>
|
|
605
|
+
* <https://peraturan.bpk.go.id/Details/57397/keppres-no-3-tahun-2017>
|
|
606
|
+
* <https://peraturan.bpk.go.id/Details/82669/keppres-no-15-tahun-2018>
|
|
607
|
+
* <https://peraturan.bpk.go.id/Details/104497/keppres-no-10-tahun-2019>
|
|
608
|
+
* <https://peraturan.bpk.go.id/Details/152704/keppres-no-22-tahun-2020>
|
|
609
|
+
* <https://peraturan.bpk.go.id/Details/277337/keppres-no-10-tahun-2024>
|
|
610
|
+
* <https://www.buduk.desa.id/berita/read/83/surat-edaran-menteri-ketenagakerjaan-republik-indonesia-nomor-1-tahun-2024.html>
|
|
607
611
|
|
|
608
612
|
References (Joint Holidays):
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
613
|
+
* <https://data.santoslolowang.com/viewing/Agama_Nasional_Indonesia/kepbersama_2002.pdf/>
|
|
614
|
+
* <https://nasional.tempo.co/read/5515/tahun-depan-libur-hari-raya-berubah>
|
|
615
|
+
* <https://nasional.tempo.co/read/45224/2005-pemerintah-tetapkan-13-hari-libur-nasional>
|
|
616
|
+
* <https://news.detik.com/berita/d-562326/30-maret-libur-hari-nyepi-31-maret-ditetapkan-cuti-bersama>
|
|
617
|
+
* <https://news.detik.com/berita/d-836627/dari-12-hari-jatah-cuti-tahun-ini-dipaksa-cuti-bareng-11-hari>
|
|
618
|
+
* <https://news.detik.com/berita/d-787189/inilah-jadwal-libur-dan-cuti-bersama-2008>
|
|
619
|
+
* <https://news.detik.com/berita/d-889403/cuti-bersama-dihapus-sisa-4-hari-untuk-lebaran-natal>
|
|
620
|
+
* <https://news.detik.com/berita/d-1263142/kamis-24-desember-cuti-bersama>
|
|
621
|
+
* <https://news.detik.com/berita/d-1179419/daftar-libur-dan-cuti-bersama-2010>
|
|
622
|
+
* <https://news.detik.com/berita/d-1378563/daftar-hari-libur-nasional-dan-cuti-bersama-2011>
|
|
623
|
+
* <https://news.detik.com/berita/d-1639209/pemerintah-tetapkan-senin-16-mei-2011-cuti-bersama>
|
|
624
|
+
* <https://news.detik.com/berita/d-1831855/cuti-bersama-tahun-2012-bertambah-1-hari-jadi-6-hari>
|
|
625
|
+
* <https://news.detik.com/berita/d-1969257/ini-dia-jadwal-hari-libur-nasional-cuti-bersama-tahun-2013>
|
|
626
|
+
* <https://news.detik.com/berita/d-2335984/daftar-cuti-bersama-dan-hari-libur-nasional-2014-termasuk-may-day>
|
|
627
|
+
* <https://news.detik.com/berita/d-2576131/ini-daftar-hari-libur-dan-cuti-bersama-tahun-2015>
|
|
628
|
+
* <https://bkpsdm.salatiga.go.id/pelaksanaan-hari-libur-nasional-dan-cuti-bersama-tahun-2015.html>
|
|
629
|
+
* <https://news.detik.com/berita/d-2952083/ini-rincian-libur-dan-cuti-bersama-2016>
|
|
630
|
+
* <https://news.detik.com/berita/d-3366218/libur-nasional-dan-cuti-bersama-2017-tambah-3-hari-ini-daftar-lengkapnya>
|
|
631
|
+
* <https://setkab.go.id/tidak-kurangi-hak-cuti-tahunan-presiden-jokowi-tetapkan-23-juni-sebagai-cuti-bersama-idul-fitri/>
|
|
632
|
+
* <https://setkab.go.id/pelayanan-publik-tetap-jalan-presiden-jokowi-tetapkan-cuti-bersama-pns-tahun-2018/>
|
|
633
|
+
* <https://setkab.go.id/keppres-no-132019-cuti-bersama-pns-pada-idul-fitri-1440h-tanggal-3-4-dan-7-juni/>
|
|
634
|
+
* <https://setkab.go.id/pemerintah-keluarkan-skb-3-menteri-hapus-tiga-hari-cuti-bersama-2020/>
|
|
635
|
+
* <https://setkab.go.id/inilah-perubahan-hari-libur-nasional-dan-cuti-bersama-tahun-2021/>
|
|
636
|
+
* <https://setkab.go.id/presiden-jokowi-terbitkan-keppres-4-tahun-2022-tentang-cuti-bersama-asn-tahun-2022/>
|
|
637
|
+
* <https://news.detik.com/berita/d-6468002/apakah-ada-cuti-bersama-natal-2022-cek-infonya-di-sini>
|
|
638
|
+
* <https://setkab.go.id/presiden-tandatangani-keppres-perubahan-cuti-bersama-bagi-asn/>
|
|
639
|
+
* <https://setkab.go.id/inilah-keppres-7-2024-tentang-cuti-bersama-asn-tahun-2024/>
|
|
640
|
+
* <https://setkab.go.id/pemerintah-tetapkan-hari-libur-nasional-dan-cuti-bersama-tahun-2025/>
|
|
637
641
|
"""
|
|
638
642
|
|
|
639
643
|
# General Election Day.
|
holidays/countries/iran.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
|
|
@@ -33,13 +33,14 @@ from holidays.holiday_base import HolidayBase
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
class Iran(HolidayBase, IslamicHolidays, PersianCalendarHolidays):
|
|
36
|
-
"""
|
|
36
|
+
"""Iran holidays.
|
|
37
|
+
|
|
37
38
|
References:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Iran>
|
|
40
|
+
* <https://fa.wikipedia.org/wiki/تعطیلات_عمومی_در_ایران>
|
|
41
|
+
* <https://www.time.ir>
|
|
42
|
+
* <https://web.archive.org/web/20170222200759/http://www.hvm.ir/LawDetailNews.aspx?id=9017>
|
|
43
|
+
* <https://en.wikipedia.org/wiki/Workweek_and_weekend>
|
|
43
44
|
"""
|
|
44
45
|
|
|
45
46
|
country = "IR"
|
|
@@ -52,8 +53,10 @@ class Iran(HolidayBase, IslamicHolidays, PersianCalendarHolidays):
|
|
|
52
53
|
|
|
53
54
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
54
55
|
"""
|
|
55
|
-
:
|
|
56
|
-
|
|
56
|
+
Args:
|
|
57
|
+
islamic_show_estimated:
|
|
58
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
59
|
+
if holiday date is estimated.
|
|
57
60
|
"""
|
|
58
61
|
IslamicHolidays.__init__(
|
|
59
62
|
self, cls=IranIslamicHolidays, show_estimated=islamic_show_estimated
|
holidays/countries/ireland.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -16,10 +16,11 @@ from holidays.holiday_base import HolidayBase
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class Ireland(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
19
|
-
"""
|
|
19
|
+
"""Ireland holidays.
|
|
20
|
+
|
|
20
21
|
References:
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_the_Republic_of_Ireland>
|
|
23
|
+
* <https://www.citizensinformation.ie/en/employment/employment_rights_and_conditions/leave_and_holidays/public_holidays_in_ireland.html>
|
|
23
24
|
"""
|
|
24
25
|
|
|
25
26
|
country = "IE"
|
|
@@ -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,7 +18,7 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SAT_SUN_TO_NEXT_
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class IsleOfMan(UnitedKingdom):
|
|
21
|
-
"""
|
|
21
|
+
"""Isle Of Man holidays."""
|
|
22
22
|
|
|
23
23
|
country = "IM"
|
|
24
24
|
parent_entity = UnitedKingdom
|
holidays/countries/israel.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
|
|
@@ -28,12 +28,11 @@ from holidays.observed_holiday_base import (
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
class Israel(ObservedHolidayBase, HebrewCalendarHolidays):
|
|
31
|
-
"""
|
|
32
|
-
Israel holidays.
|
|
31
|
+
"""Israel holidays.
|
|
33
32
|
|
|
34
33
|
References:
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Israel>
|
|
35
|
+
* <https://web.archive.org/web/20190923042619/https://www.knesset.gov.il/laws/special/heb/jerusalem_day_law.htm>
|
|
37
36
|
"""
|
|
38
37
|
|
|
39
38
|
country = "IL"
|
holidays/countries/italy.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -16,10 +16,11 @@ from holidays.holiday_base import HolidayBase
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class Italy(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
19
|
-
"""
|
|
19
|
+
"""Italy holidays.
|
|
20
|
+
|
|
20
21
|
References:
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Italy>
|
|
23
|
+
* [Provinces holidays](https://it.wikipedia.org/wiki/Santi_patroni_cattolici_delle_citt%C3%A0_capoluogo_di_provincia_italiane)
|
|
23
24
|
"""
|
|
24
25
|
|
|
25
26
|
country = "IT"
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# holidays
|
|
2
|
+
# --------
|
|
3
|
+
# A fast, efficient Python library for generating country, province and state
|
|
4
|
+
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
|
+
# specific date is a holiday as fast and flexible as possible.
|
|
6
|
+
#
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
|
+
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
|
+
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
|
+
# Website: https://github.com/vacanza/holidays
|
|
11
|
+
# License: MIT (see LICENSE file)
|
|
12
|
+
|
|
13
|
+
from gettext import gettext as tr
|
|
14
|
+
|
|
15
|
+
from holidays.calendars.gregorian import FEB, OCT
|
|
16
|
+
from holidays.groups import (
|
|
17
|
+
ChristianHolidays,
|
|
18
|
+
InternationalHolidays,
|
|
19
|
+
IslamicHolidays,
|
|
20
|
+
StaticHolidays,
|
|
21
|
+
)
|
|
22
|
+
from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class IvoryCoast(
|
|
26
|
+
ObservedHolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays, StaticHolidays
|
|
27
|
+
):
|
|
28
|
+
"""Ivory Coast holidays.
|
|
29
|
+
|
|
30
|
+
References:
|
|
31
|
+
* [Decree No. 96-205](https://www.droit-afrique.com/uploads/RCI-Decret-1996-205-jours-feries.pdf)
|
|
32
|
+
* Decree No. 2011-371:
|
|
33
|
+
* [page 1](https://web.archive.org/web/20180617165811/http://www.cgeci.org/cgeci/docs/documents/Doc-ferie-1.pdf)
|
|
34
|
+
* [page 2](https://web.archive.org/web/20180826205106/http://www.cgeci.org/cgeci/docs/documents/Doc-ferie-2.pdf)
|
|
35
|
+
* <https://fr.wikipedia.org/wiki/Fêtes_et_jours_fériés_en_Côte_d%27Ivoire>
|
|
36
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Ivory_Coast>
|
|
37
|
+
* <https://www.timeanddate.com/holidays/ivory-coast/>
|
|
38
|
+
* [National Peace Day](https://en.wikipedia.org/wiki/Ivory_Coast#Independence)
|
|
39
|
+
|
|
40
|
+
Note:
|
|
41
|
+
The oldest decree available online that underpins the public holidays defined here
|
|
42
|
+
for the Ivory Coast is Decree no. 96-205 of March 7, 1996.
|
|
43
|
+
|
|
44
|
+
In Islamic calendar, days begin at sunset. The naming convention "day after" refers
|
|
45
|
+
to the daylight hours following the night of the celebration, which is technically
|
|
46
|
+
the same Gregorian calendar day.
|
|
47
|
+
|
|
48
|
+
According to Decree no. 2011-371 of 4 November 2011, if Eid al-Fitr, Eid al-Adha
|
|
49
|
+
or Christmas Day falls on a Sunday, the following Monday is also a holiday.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
country = "CI"
|
|
53
|
+
default_language = "fr"
|
|
54
|
+
# %s (estimated).
|
|
55
|
+
estimated_label = tr("%s (estimé)")
|
|
56
|
+
# Day after the %s.
|
|
57
|
+
observed_label = tr("Lendemain de la %s")
|
|
58
|
+
# Day after the %s (estimated).
|
|
59
|
+
observed_estimated_label = tr("Lendemain de la %s (estimé)")
|
|
60
|
+
start_year = 1997
|
|
61
|
+
supported_languages = ("en_CI", "en_US", "fr")
|
|
62
|
+
|
|
63
|
+
def __init__(self, islamic_show_estimated: bool = False, *args, **kwargs):
|
|
64
|
+
"""
|
|
65
|
+
Args:
|
|
66
|
+
islamic_show_estimated:
|
|
67
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
68
|
+
if holiday date is estimated.
|
|
69
|
+
"""
|
|
70
|
+
ChristianHolidays.__init__(self)
|
|
71
|
+
# The observed dates for the Ivory Coast's islamic holidays have been verified against
|
|
72
|
+
# local references (COSIM) and align with the default Umm al-Qura calculations.
|
|
73
|
+
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
|
|
74
|
+
InternationalHolidays.__init__(self)
|
|
75
|
+
StaticHolidays.__init__(self, IvoryCoastStaticHolidays)
|
|
76
|
+
kwargs.setdefault("observed_rule", SUN_TO_NEXT_MON)
|
|
77
|
+
super().__init__(*args, **kwargs)
|
|
78
|
+
|
|
79
|
+
def _populate_public_holidays(self):
|
|
80
|
+
# New Year's Day.
|
|
81
|
+
self._add_new_years_day(tr("1er janvier"))
|
|
82
|
+
|
|
83
|
+
# Easter Monday.
|
|
84
|
+
self._add_easter_monday(tr("Lundi de Pâques"))
|
|
85
|
+
|
|
86
|
+
# Labor Day.
|
|
87
|
+
self._add_observed(self._add_labor_day(tr("Fête du travail")))
|
|
88
|
+
|
|
89
|
+
# Ascension Day.
|
|
90
|
+
self._add_ascension_thursday(tr("Jour de l’Ascension"))
|
|
91
|
+
|
|
92
|
+
# Whit Monday.
|
|
93
|
+
self._add_whit_monday(tr("Lundi de Pentecôte"))
|
|
94
|
+
|
|
95
|
+
# Independence Day.
|
|
96
|
+
self._add_observed(self._add_holiday_aug_7(tr("Fête Nationale")))
|
|
97
|
+
|
|
98
|
+
# Assumption Day.
|
|
99
|
+
self._add_assumption_of_mary_day(tr("Fête de l’Assomption"))
|
|
100
|
+
|
|
101
|
+
# National Peace Day.
|
|
102
|
+
self._add_holiday_nov_15(tr("Journée Nationale de la Paix"))
|
|
103
|
+
|
|
104
|
+
# All Saints' Day.
|
|
105
|
+
self._add_all_saints_day(tr("Fête de la Toussaint"))
|
|
106
|
+
|
|
107
|
+
if self._year <= 2000:
|
|
108
|
+
self._add_holiday_dec_7(
|
|
109
|
+
# Anniversary of death of President Felix Houphouet-Boigny.
|
|
110
|
+
tr("Anniversaire du décès du Président Felix Houphouet-Boigny")
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
# Christmas Day.
|
|
114
|
+
dt = self._add_christmas_day(tr("Fête de Noël"))
|
|
115
|
+
if self._year >= 2011:
|
|
116
|
+
self._add_observed(dt)
|
|
117
|
+
|
|
118
|
+
# Day after Prophet's Birthday.
|
|
119
|
+
self._add_mawlid_day(tr("Lendemain de l’Anniversaire de la Naissance du Prophète Mahomet"))
|
|
120
|
+
|
|
121
|
+
# Day after Night of Power.
|
|
122
|
+
self._add_laylat_al_qadr_day(tr("Lendemain de la Nuit du Destin"))
|
|
123
|
+
|
|
124
|
+
# Eid al-Fitr.
|
|
125
|
+
for dt in self._add_eid_al_fitr_day(tr("Fête de fin du Ramadan")):
|
|
126
|
+
if self._year >= 2012:
|
|
127
|
+
self._add_observed(dt)
|
|
128
|
+
|
|
129
|
+
# Eid al-Adha.
|
|
130
|
+
for dt in self._add_eid_al_adha_day(tr("Fête de la Tabaski")):
|
|
131
|
+
if self._year >= 2012:
|
|
132
|
+
self._add_observed(dt)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
class CI(IvoryCoast):
|
|
136
|
+
pass
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
class CIV(IvoryCoast):
|
|
140
|
+
pass
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
class IvoryCoastStaticHolidays:
|
|
144
|
+
"""Ivory Coast special holidays.
|
|
145
|
+
|
|
146
|
+
References:
|
|
147
|
+
* [2010 Presidential Election](https://www.gouv.ci/_actualite-article.php?d=4.&recordID=1255&p=366)
|
|
148
|
+
* [2024 AFCON](https://apanews.net/public-holiday-as-cote-divoire-wins-afcon-trophy/)
|
|
149
|
+
"""
|
|
150
|
+
|
|
151
|
+
special_public_holidays = {
|
|
152
|
+
# Public holiday for Presidential election preparation.
|
|
153
|
+
2010: (OCT, 29, tr("Jour férié pour la préparation de l'élection présidentielle")),
|
|
154
|
+
# 2024 African Cup of Nations Victory.
|
|
155
|
+
2024: (FEB, 12, tr("Victoire à la Coupe d’Afrique des Nations 2024")),
|
|
156
|
+
}
|
holidays/countries/jamaica.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -20,9 +20,11 @@ from holidays.observed_holiday_base import (
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class Jamaica(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
"""Jamaica holidays.
|
|
24
|
+
|
|
25
|
+
References:
|
|
26
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Jamaica>
|
|
27
|
+
* <https://www.mlss.gov.jm/wp-content/uploads/2017/11/The-Holidays-Public-General-Act.pdf>
|
|
26
28
|
"""
|
|
27
29
|
|
|
28
30
|
country = "JM"
|
holidays/countries/japan.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
|
|
@@ -32,11 +32,11 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_WORK
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
class Japan(ObservedHolidayBase, InternationalHolidays, StaticHolidays):
|
|
35
|
-
"""
|
|
36
|
-
References:
|
|
35
|
+
"""Japan holidays.
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
References:
|
|
38
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Japan>
|
|
39
|
+
* <https://www.boj.or.jp/en/about/outline/holi.htm>
|
|
40
40
|
"""
|
|
41
41
|
|
|
42
42
|
country = "JP"
|
holidays/countries/jersey.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
|
|
@@ -25,16 +25,18 @@ from holidays.observed_holiday_base import (
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class Jersey(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
28
|
-
"""
|
|
28
|
+
"""Jersey holidays.
|
|
29
|
+
|
|
29
30
|
References:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Jersey>
|
|
32
|
+
* [2010 Revision](https://www.jerseylaw.je/laws/current/Pages/15.560.20.aspx)
|
|
33
|
+
* [1952 Revision](https://www.jerseylaw.je/laws/superseded/Pages/2006/15.560.20.aspx)
|
|
34
|
+
* [1952 as enacted](https://www.jerseylaw.je/laws/enacted/Pages/RO-3038.aspx)
|
|
35
|
+
* [Bank Holidays](https://www.jerseylaw.je/laws/enacted/Pages/Jersey%20RO%205331.aspx)
|
|
36
|
+
* [May Bank Holiday](https://www.jerseylaw.je/laws/enacted/Pages/Jersey%20RO%206795.aspx)
|
|
37
|
+
|
|
36
38
|
Checked with:
|
|
37
|
-
|
|
39
|
+
* [From 2010 onwards](https://www.gov.je/Leisure/Events/WhatsOn/pages/bankholidaydates.aspx)
|
|
38
40
|
|
|
39
41
|
This has only been cross-checked with the official source from 2010 onwards.
|
|
40
42
|
|
|
@@ -157,24 +159,25 @@ class JEY(Jersey):
|
|
|
157
159
|
|
|
158
160
|
|
|
159
161
|
class JerseyStaticHolidays:
|
|
160
|
-
"""
|
|
162
|
+
"""Jersey special holidays.
|
|
163
|
+
|
|
161
164
|
References:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
165
|
+
* <https://www.gov.je/News/2019/pages/vedaypublicholiday8may.aspx>
|
|
166
|
+
* <https://www.gov.je/news/2021/pages/cornriots.aspx>
|
|
167
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/Jersey%20R%20%20O%209288.aspx>
|
|
168
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/Jersey%20R%20%20O%209317.aspx>
|
|
169
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/Jersey%20RO%2042-2001.aspx>
|
|
170
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/Jersey%20RO%206350.aspx>
|
|
171
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/Jersey%20RO%206514.aspx>
|
|
172
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/Jersey%20RO%206924.aspx>
|
|
173
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/Jersey%20RO%207689.aspx>
|
|
174
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/Jersey%20RO%207877.aspx>
|
|
175
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/Jersey%20RO%208451.aspx>
|
|
176
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/Jersey%20RO%208596.aspx>
|
|
177
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/RO-050-2021.aspx>
|
|
178
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/RO-108-2009.aspx>
|
|
179
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/RO-3038.aspx>
|
|
180
|
+
* <https://www.jerseylaw.je/laws/enacted/Pages/RO-036-2024.aspx>
|
|
178
181
|
"""
|
|
179
182
|
|
|
180
183
|
# Mostly a direct copy of UnitedKingdomStaticHolidays.
|
holidays/countries/jordan.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,10 +18,11 @@ from holidays.holiday_base import HolidayBase
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Jordan(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays):
|
|
21
|
-
"""
|
|
21
|
+
"""Jordan holidays.
|
|
22
|
+
|
|
22
23
|
References:
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Jordan>
|
|
25
|
+
* <https://www.mfa.gov.jo/content/public-holidays>
|
|
25
26
|
"""
|
|
26
27
|
|
|
27
28
|
country = "JO"
|
|
@@ -32,8 +33,10 @@ class Jordan(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolid
|
|
|
32
33
|
|
|
33
34
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
34
35
|
"""
|
|
35
|
-
:
|
|
36
|
-
|
|
36
|
+
Args:
|
|
37
|
+
islamic_show_estimated:
|
|
38
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
39
|
+
if holiday date is estimated.
|
|
37
40
|
"""
|
|
38
41
|
ChristianHolidays.__init__(self)
|
|
39
42
|
InternationalHolidays.__init__(self)
|