holidays 0.68__py3-none-any.whl → 0.70__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- holidays/__init__.py +1 -1
- holidays/calendars/__init__.py +2 -1
- holidays/calendars/balinese_saka.py +112 -0
- holidays/calendars/buddhist.py +1 -1
- holidays/calendars/chinese.py +1 -1
- holidays/calendars/custom.py +1 -1
- holidays/calendars/gregorian.py +1 -1
- holidays/calendars/hebrew.py +1 -1
- holidays/calendars/hindu.py +866 -2
- holidays/calendars/islamic.py +161 -1
- holidays/calendars/julian.py +1 -1
- holidays/calendars/julian_revised.py +1 -1
- holidays/calendars/persian.py +1 -1
- holidays/calendars/sinhala.py +1 -1
- holidays/calendars/thai.py +309 -257
- holidays/constants.py +3 -1
- holidays/countries/__init__.py +7 -1
- holidays/countries/afghanistan.py +17 -7
- holidays/countries/albania.py +16 -7
- holidays/countries/algeria.py +14 -10
- holidays/countries/american_samoa.py +12 -6
- holidays/countries/andorra.py +5 -4
- holidays/countries/angola.py +15 -14
- holidays/countries/antigua_and_barbuda.py +145 -0
- holidays/countries/argentina.py +787 -169
- holidays/countries/armenia.py +5 -6
- holidays/countries/aruba.py +11 -9
- holidays/countries/australia.py +21 -20
- holidays/countries/austria.py +3 -1
- holidays/countries/azerbaijan.py +30 -19
- holidays/countries/bahamas.py +13 -11
- holidays/countries/bahrain.py +14 -7
- holidays/countries/bangladesh.py +5 -4
- holidays/countries/barbados.py +11 -9
- holidays/countries/belarus.py +15 -15
- holidays/countries/belgium.py +8 -6
- holidays/countries/belize.py +7 -6
- holidays/countries/bolivia.py +12 -11
- holidays/countries/bosnia_and_herzegovina.py +21 -11
- holidays/countries/botswana.py +8 -6
- holidays/countries/brazil.py +8 -7
- holidays/countries/brunei.py +56 -62
- holidays/countries/bulgaria.py +9 -10
- holidays/countries/burkina_faso.py +14 -5
- holidays/countries/burundi.py +17 -12
- holidays/countries/cambodia.py +15 -24
- holidays/countries/cameroon.py +16 -7
- holidays/countries/canada.py +13 -12
- holidays/countries/chad.py +15 -6
- holidays/countries/chile.py +29 -28
- holidays/countries/china.py +39 -38
- holidays/countries/colombia.py +15 -20
- holidays/countries/congo.py +6 -7
- holidays/countries/costa_rica.py +11 -10
- holidays/countries/croatia.py +8 -5
- holidays/countries/cuba.py +30 -27
- holidays/countries/curacao.py +6 -4
- holidays/countries/cyprus.py +4 -5
- holidays/countries/czechia.py +7 -6
- holidays/countries/denmark.py +5 -6
- holidays/countries/djibouti.py +11 -3
- holidays/countries/dominica.py +18 -16
- holidays/countries/dominican_republic.py +6 -4
- holidays/countries/ecuador.py +5 -4
- holidays/countries/egypt.py +10 -11
- holidays/countries/el_salvador.py +6 -5
- holidays/countries/estonia.py +3 -1
- holidays/countries/eswatini.py +6 -4
- holidays/countries/ethiopia.py +26 -11
- holidays/countries/fiji.py +183 -0
- holidays/countries/finland.py +11 -10
- holidays/countries/france.py +6 -9
- holidays/countries/gabon.py +17 -8
- holidays/countries/georgia.py +7 -7
- holidays/countries/germany.py +11 -11
- holidays/countries/ghana.py +14 -6
- holidays/countries/greece.py +4 -5
- holidays/countries/greenland.py +5 -6
- holidays/countries/guam.py +12 -6
- holidays/countries/guatemala.py +7 -9
- holidays/countries/guernsey.py +37 -34
- holidays/countries/guinea.py +182 -0
- holidays/countries/haiti.py +6 -5
- holidays/countries/honduras.py +8 -4
- holidays/countries/hongkong.py +49 -60
- holidays/countries/hungary.py +26 -23
- holidays/countries/iceland.py +5 -4
- holidays/countries/india.py +494 -174
- holidays/countries/indonesia.py +68 -108
- holidays/countries/iran.py +18 -9
- holidays/countries/ireland.py +5 -4
- holidays/countries/isle_of_man.py +2 -2
- holidays/countries/israel.py +4 -5
- holidays/countries/italy.py +5 -4
- holidays/countries/ivory_coast.py +156 -0
- holidays/countries/jamaica.py +6 -4
- holidays/countries/japan.py +5 -5
- holidays/countries/jersey.py +29 -26
- holidays/countries/jordan.py +13 -6
- holidays/countries/kazakhstan.py +72 -51
- holidays/countries/kenya.py +28 -18
- holidays/countries/kuwait.py +14 -7
- holidays/countries/kyrgyzstan.py +11 -6
- holidays/countries/laos.py +21 -29
- holidays/countries/latvia.py +7 -5
- holidays/countries/lesotho.py +6 -5
- holidays/countries/liechtenstein.py +5 -5
- holidays/countries/lithuania.py +4 -5
- holidays/countries/luxembourg.py +5 -3
- holidays/countries/macau.py +480 -0
- holidays/countries/madagascar.py +5 -4
- holidays/countries/malawi.py +6 -4
- holidays/countries/malaysia.py +30 -18
- holidays/countries/maldives.py +14 -7
- holidays/countries/malta.py +10 -19
- holidays/countries/marshall_islands.py +6 -4
- holidays/countries/mauritania.py +13 -6
- holidays/countries/mexico.py +8 -7
- holidays/countries/moldova.py +6 -4
- holidays/countries/monaco.py +6 -4
- holidays/countries/montenegro.py +16 -7
- holidays/countries/morocco.py +13 -8
- holidays/countries/mozambique.py +3 -1
- holidays/countries/namibia.py +7 -5
- holidays/countries/netherlands.py +6 -6
- holidays/countries/new_zealand.py +3 -1
- holidays/countries/nicaragua.py +6 -5
- holidays/countries/nigeria.py +13 -5
- holidays/countries/north_macedonia.py +13 -5
- holidays/countries/northern_mariana_islands.py +12 -6
- holidays/countries/norway.py +15 -15
- holidays/countries/pakistan.py +48 -18
- holidays/countries/palau.py +13 -11
- holidays/countries/panama.py +9 -8
- holidays/countries/papua_new_guinea.py +25 -21
- holidays/countries/paraguay.py +10 -9
- holidays/countries/peru.py +4 -5
- holidays/countries/philippines.py +32 -18
- holidays/countries/poland.py +7 -6
- holidays/countries/portugal.py +13 -15
- holidays/countries/puerto_rico.py +12 -6
- holidays/countries/qatar.py +172 -0
- holidays/countries/romania.py +6 -4
- holidays/countries/russia.py +6 -4
- holidays/countries/saint_kitts_and_nevis.py +24 -22
- holidays/countries/saint_lucia.py +8 -7
- holidays/countries/samoa.py +7 -6
- holidays/countries/san_marino.py +4 -3
- holidays/countries/saudi_arabia.py +15 -15
- holidays/countries/serbia.py +3 -4
- holidays/countries/seychelles.py +22 -26
- holidays/countries/singapore.py +33 -38
- holidays/countries/slovakia.py +6 -5
- holidays/countries/slovenia.py +7 -6
- holidays/countries/south_africa.py +8 -6
- holidays/countries/south_korea.py +25 -32
- holidays/countries/spain.py +31 -24
- holidays/countries/sri_lanka.py +52 -42
- holidays/countries/sweden.py +20 -19
- holidays/countries/switzerland.py +6 -5
- holidays/countries/taiwan.py +230 -31
- holidays/countries/tanzania.py +34 -27
- holidays/countries/thailand.py +134 -142
- holidays/countries/timor_leste.py +38 -17
- holidays/countries/tonga.py +46 -42
- holidays/countries/tunisia.py +9 -3
- holidays/countries/turkey.py +17 -9
- holidays/countries/tuvalu.py +12 -11
- holidays/countries/ukraine.py +54 -54
- holidays/countries/united_arab_emirates.py +43 -30
- holidays/countries/united_kingdom.py +7 -6
- holidays/countries/united_states.py +130 -86
- holidays/countries/united_states_minor_outlying_islands.py +12 -6
- holidays/countries/united_states_virgin_islands.py +12 -6
- holidays/countries/uruguay.py +10 -9
- holidays/countries/uzbekistan.py +16 -7
- holidays/countries/vanuatu.py +7 -5
- holidays/countries/vatican_city.py +16 -15
- holidays/countries/venezuela.py +11 -14
- holidays/countries/vietnam.py +15 -11
- holidays/countries/zambia.py +8 -6
- holidays/countries/zimbabwe.py +6 -4
- holidays/deprecations/v1_incompatibility.py +1 -1
- holidays/financial/__init__.py +1 -1
- holidays/financial/brasil_bolsa_balcao.py +14 -13
- holidays/financial/european_central_bank.py +7 -6
- holidays/financial/ice_futures_europe.py +7 -6
- holidays/financial/ny_stock_exchange.py +13 -10
- holidays/groups/__init__.py +2 -1
- holidays/groups/balinese_saka.py +45 -0
- holidays/groups/buddhist.py +1 -1
- holidays/groups/chinese.py +69 -4
- holidays/groups/christian.py +1 -1
- holidays/groups/custom.py +1 -1
- holidays/groups/eastern.py +1 -1
- holidays/groups/hebrew.py +1 -1
- holidays/groups/hindu.py +256 -1
- holidays/groups/international.py +1 -1
- holidays/groups/islamic.py +17 -3
- holidays/groups/persian.py +1 -1
- holidays/groups/sinhala.py +1 -1
- holidays/groups/thai.py +1 -7
- holidays/helpers.py +1 -1
- holidays/holiday_base.py +410 -273
- holidays/ical.py +228 -0
- holidays/locale/ar_QA/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/de/LC_MESSAGES/PL.mo +0 -0
- holidays/locale/en_CI/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_HK/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/en_IN/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/en_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/en_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/GN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/es/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/GN.mo +0 -0
- holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/pt_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/pt_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/tet/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/th/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/ur_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/zh_HK/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/zh_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/zh_TW/LC_MESSAGES/TW.mo +0 -0
- holidays/mixins.py +2 -2
- holidays/observed_holiday_base.py +5 -2
- holidays/registry.py +7 -1
- holidays/utils.py +151 -151
- holidays/version.py +2 -2
- holidays-0.70.dist-info/METADATA +1404 -0
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/RECORD +253 -222
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/WHEEL +1 -1
- holidays-0.68.dist-info/AUTHORS → holidays-0.70.dist-info/licenses/AUTHORS.md +7 -2
- {holidays-0.68.dist-info → holidays-0.70.dist-info/licenses}/LICENSE +1 -1
- holidays-0.68.dist-info/METADATA +0 -1080
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/top_level.txt +0 -0
holidays/countries/thailand.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
|
|
@@ -42,150 +42,142 @@ from holidays.observed_holiday_base import (
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
class Thailand(ObservedHolidayBase, InternationalHolidays, StaticHolidays, ThaiCalendarHolidays):
|
|
45
|
-
"""
|
|
46
|
-
A subclass of :py:class:`HolidayBase` representing public holidays in Thailand.
|
|
45
|
+
"""Thailand holidays.
|
|
47
46
|
|
|
48
47
|
References:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
https://
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
https://www.matichon.co.th/politics/news_526200
|
|
113
|
-
https://workpointtoday.com/news1-5
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
https://www.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
https://
|
|
143
|
-
|
|
144
|
-
https://
|
|
145
|
-
|
|
146
|
-
https://www.
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
Applied Automatically for Workday if on Weekends: 2001-Present
|
|
48
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Thailand>
|
|
49
|
+
* [Holidays Act (MAR 1914)](https://ratchakitcha.soc.go.th/documents/1044125.pdf)
|
|
50
|
+
* [Special Extension for MoJ (In-effect 1915 onwards)](https://ratchakitcha.soc.go.th/documents/1046008.pdf)
|
|
51
|
+
* [Holidays Act Amendment (MAR 1926)](https://ratchakitcha.soc.go.th/documents/1073133.pdf)
|
|
52
|
+
* [Ascension of HM King Ananda Mahidol (MAR 1935)](https://th.wikisource.org/wiki/ประกาศนายกรัฐมนตรี_ลงวันที่_7_มีนาคม_2477_(รก.))
|
|
53
|
+
* [Holidays Act Amendment (JAN 1938)](https://ratchakitcha.soc.go.th/documents/1105432.pdf)
|
|
54
|
+
* [Translation Typo Fixed for the JAN 1938 Amendment](https://ratchakitcha.soc.go.th/documents/1105491.pdf)
|
|
55
|
+
* [Constitution Petition Day renamed National Day (JUL 1938)](https://th.wikisource.org/wiki/ประกาศสำนักนายกรัฐมนตรี_ลงวันที่_18_กรกฎาคม_2481)
|
|
56
|
+
* [Holidays Act Amendment (MAR 1940)](https://ratchakitcha.soc.go.th/documents/1110471.pdf)
|
|
57
|
+
* [Holidays Act Amendment (SEP 1940) (In-effect 1941)](https://ratchakitcha.soc.go.th/documents/1111954.pdf)
|
|
58
|
+
* [Removal of Royal Language for King's Birthday (B.E 2484/1941)](https://th.wikisource.org/wiki/ประกาศสำนักนายกรัฐมนตรี_ลงวันที่_19_กันยายน_2484)
|
|
59
|
+
* [Holidays Act, Franco-Thai War Armistice Day added (B.E. 2485/1942)](https://ratchakitcha.soc.go.th/documents/1114825.pdf)
|
|
60
|
+
* [Holidays Act, Franco-Thai War Armistice Day Repealed (B.E. 2487/1944)](https://ratchakitcha.soc.go.th/documents/1121365.pdf)
|
|
61
|
+
* [Removal of Royal Language for King's Birthday Repealed (B.E 2488/1945)](https://th.wikisource.org/wiki/ประกาศสำนักนายกรัฐมนตรี_ลงวันที่_12_มกราคม_2488)
|
|
62
|
+
* [Holidays Act Amendment (DEC B.E. 2488/1945)](https://ratchakitcha.soc.go.th/documents/1123218.pdf)
|
|
63
|
+
* [Holidays Act Amendment (AUG B.E. 2489/1946)](https://ratchakitcha.soc.go.th/documents/1124494.pdf)
|
|
64
|
+
* [Special Weekend Arrangement for 4 Southern Provinces (4SP)](https://ratchakitcha.soc.go.th/documents/1129175.pdf)
|
|
65
|
+
* [Holidays Act, B.E. 2491 (1948)](https://ratchakitcha.soc.go.th/documents/1130817.pdf)
|
|
66
|
+
* [Holidays Act (No. 2), B.E. 2493 (1950)](https://ratchakitcha.soc.go.th/documents/1141392.pdf)
|
|
67
|
+
* [Holidays Act (No. 3), B.E. 2494 (1951)](https://ratchakitcha.soc.go.th/documents/1143601.pdf)
|
|
68
|
+
* [HM King Bhumibol Adulyadej Birthday Holidays Adjustment](https://ratchakitcha.soc.go.th/documents/1145614.pdf)
|
|
69
|
+
* [Holidays Act (No. 4), B.E. 2495 (1952)](https://ratchakitcha.soc.go.th/documents/1148403.pdf)
|
|
70
|
+
* [Holidays Act (No. 6), B.E. 2497 (1954)](https://ratchakitcha.soc.go.th/documents/1159427.pdf)
|
|
71
|
+
* [Holidays Act (No. 7), B.E. 2497 (1954); United Nations Day added](https://ratchakitcha.soc.go.th/documents/1160256.pdf)
|
|
72
|
+
* [Holidays Act (No. 8), B.E. 2499 (1956); Mothers Day, Children's Day added](https://ratchakitcha.soc.go.th/documents/1169783.pdf)
|
|
73
|
+
* [Holidays Act (No. 9), B.E. 2499 (1956); Weekend is now Buddhist Sabbath-SUN](https://ratchakitcha.soc.go.th/documents/1172667.pdf)
|
|
74
|
+
* [Holidays Act (No. 10), B.E. 2500 (1957); Weekend Change Reverted](https://ratchakitcha.soc.go.th/documents/1179999.pdf)
|
|
75
|
+
* [Holidays Act (No. 11), B.E. 2500 (1957)](https://ratchakitcha.soc.go.th/documents/1180042.pdf)
|
|
76
|
+
* [Holidays Act (No. 12), B.E. 2502 (1959); Weekend is full day SAT-SUN](https://ratchakitcha.soc.go.th/documents/1187876.pdf)
|
|
77
|
+
* [Holidays Act (No. 13), B.E. 2503 (1960); National Day is now Dec 5](https://ratchakitcha.soc.go.th/documents/1196364.pdf)
|
|
78
|
+
* [Holidays Act (No. 14), B.E. 2505 (1962); Asarnha Bucha added](https://ratchakitcha.soc.go.th/documents/1206407.pdf)
|
|
79
|
+
* [Holidays Act (No. 16), B.E. 2506 (1963); 4SP weekend is now SAT-SUN](https://hr.rid.go.th/wp-content/uploads/2022/12/06-16.pdf)
|
|
80
|
+
* [Eid-al-Fitr and Eit al-Adha added for 4SP](https://hr.rid.go.th/wp-content/uploads/2022/12/05-2517.pdf)
|
|
81
|
+
* [Holidays Act (No. 17), B.E. 2525 (1982); Chakri Day Full Name Changed](https://ratchakitcha.soc.go.th/documents/1494132.pdf)
|
|
82
|
+
* [Holidays Act (No. 19), B.E. 2540 (1997); Songkran Date Changed](https://ratchakitcha.soc.go.th/documents/1685580.pdf)
|
|
83
|
+
* [Holidays Act (No. 20), B.E. 2555 (2012); CNY in 4SP](https://ratchakitcha.soc.go.th/documents/1914282.pdf)
|
|
84
|
+
* [Holidays Act (No. 21), B.E. 2556 (2013); Songkhla added to 4SP](https://ratchakitcha.soc.go.th/documents/2098813.pdf)
|
|
85
|
+
* [Holidays Act (No. 22), B.E. 2560 (2017); Father's Day Date Clarification](https://ratchakitcha.soc.go.th/documents/2098828.pdf)
|
|
86
|
+
* [Holidays Act (No. 23), B.E. 2560 (2017); Rama X's Birthday added](https://ratchakitcha.soc.go.th/documents/2104467.pdf)
|
|
87
|
+
* [HM Queen Suthida's Birthday added](https://ratchakitcha.soc.go.th/documents/17081602.pdf)
|
|
88
|
+
* [Holidays Act, B.E. 2562 (2019)](https://ratchakitcha.soc.go.th/documents/17082311.pdf)
|
|
89
|
+
|
|
90
|
+
Checked with:
|
|
91
|
+
* [Bank of Thailand lists](http://tiny.cc/wa_bot_2023)
|
|
92
|
+
|
|
93
|
+
In Lieus:
|
|
94
|
+
* [isranews.org](http://tiny.cc/wa_isranews_inlieu_hist)
|
|
95
|
+
* <https://resolution.soc.go.th/?prep_id=99159317>
|
|
96
|
+
* <https://resolution.soc.go.th/?prep_id=196007>
|
|
97
|
+
* <https://github.com/vacanza/holidays/pull/929>
|
|
98
|
+
* <https://www.thairath.co.th/lifestyle/life/2812118>
|
|
99
|
+
* <https://www.thaipbs.or.th/news/content/346216>
|
|
100
|
+
|
|
101
|
+
Certain holidays references:
|
|
102
|
+
* [New Year's Day](http://tiny.cc/wa_wiki_thai_newyear_2483)
|
|
103
|
+
* [National Children's Day](https://thainews.prd.go.th/banner/th/children'sday/)
|
|
104
|
+
* [Chakri Memorial Day](http://tiny.cc/wa_ocac_chakri)
|
|
105
|
+
* Songkran Festival:
|
|
106
|
+
* [museumsiam.org](http://tiny.cc/wa_museumsiam_songkran)
|
|
107
|
+
* <https://resolution.soc.go.th/?prep_id=123659>
|
|
108
|
+
* [National Labour Day](https://www.thairath.co.th/lifestyle/culture/1832869)
|
|
109
|
+
* [National Day (24 June: Defunct)](http://tiny.cc/wa_mincul_nat_day)
|
|
110
|
+
* Coronation Day:
|
|
111
|
+
* <https://www.matichon.co.th/politics/news_526200>
|
|
112
|
+
* <https://workpointtoday.com/news1-5/>
|
|
113
|
+
* [HM Queen Suthida's Birthday](https://www.thairath.co.th/news/politic/1567418)
|
|
114
|
+
* [HM Maha Vajiralongkorn's Birthday](https://www.matichon.co.th/politics/news_526200)
|
|
115
|
+
* [HM Queen Sirikit the Queen Mother's Birthday](https://hilight.kapook.com/view/14164)
|
|
116
|
+
* [National Mother's Day](https://www.brh.go.th/index.php/2019-02-27-04-11-52/542-12-2564)
|
|
117
|
+
* [HM King Bhumibol Adulyadej Memorial Day](https://www.matichon.co.th/politics/news_526200)
|
|
118
|
+
* HM King Chulalongkorn Memorial Day:
|
|
119
|
+
* <https://th.wikipedia.org/wiki/วันปิยมหาราช>
|
|
120
|
+
* <https://www.sanook.com/news/9072518/>
|
|
121
|
+
* HM King Bhumibol Adulyadej's Birthday
|
|
122
|
+
* [Ministry of Culture](http://tiny.cc/wa_mincul_nat_day)
|
|
123
|
+
* <https://hilight.kapook.com/view/148862>
|
|
124
|
+
* [National Father's Day](https://www.brh.go.th/index.php/2019-02-27-04-12-21/594-5-5)
|
|
125
|
+
* Constitution Day:
|
|
126
|
+
* [ประเทศไทย](https://th.wikipedia.org/wiki/วันรัฐธรรมนูญ_)
|
|
127
|
+
* <https://hilight.kapook.com/view/18208>
|
|
128
|
+
* [Bank of Thailand](http://tiny.cc/wa_bot_1992)
|
|
129
|
+
* <https://www.myhora.com/ปฏิทิน/ปฏิทิน-พ.ศ.2475.aspx>
|
|
130
|
+
* New Year's Eve:
|
|
131
|
+
* [Bank of Thailand](http://tiny.cc/wa_bot_1992)
|
|
132
|
+
* <https://resolution.soc.go.th/?prep_id=205799>
|
|
133
|
+
* <https://resolution.soc.go.th/?prep_id=210744>
|
|
134
|
+
* [Makha Bucha](https://www.onab.go.th/th/content/category/detail/id/73/iid/3403)
|
|
135
|
+
* [Visakha Bucha](https://www.onab.go.th/th/content/category/detail/id/73/iid/3401)
|
|
136
|
+
* [Asarnha Bucha](https://www.onab.go.th/th/content/category/detail/id/73/iid/3397)
|
|
137
|
+
* [Buddhist Lent Day](https://www.onab.go.th/th/content/category/detail/id/73/iid/3395)
|
|
138
|
+
* Royal Ploughing Ceremony:
|
|
139
|
+
* <https://en.wikipedia.org/wiki/Royal_Ploughing_Ceremony>
|
|
140
|
+
* <https://www.lib.ru.ac.th/journal/may/may_phauchmongkol.html>
|
|
141
|
+
* <https://dl.parliament.go.th/handle/20.500.13072/103428>
|
|
142
|
+
* <https://dl.parliament.go.th/handle/20.500.13072/92816>
|
|
143
|
+
* <https://e-manage.mju.ac.th/timeline_detail.aspx?key=MTk4>
|
|
144
|
+
* <https://resolution.soc.go.th/PDF_UPLOAD/2510/932141.pdf>
|
|
145
|
+
* <https://www.myhora.com/ปฏิทิน/วันพืชมงคล.aspx>
|
|
146
|
+
* [Royal Thai Armed Forces Day](https://th.wikipedia.org/wiki/วันกองทัพไทย)
|
|
147
|
+
* [Teacher's Day](https://www.cabinet.soc.go.th/doc_image/2500/718941.pdf)
|
|
148
|
+
|
|
149
|
+
!!! info "Info"
|
|
150
|
+
If Public Holiday falls on weekends, (in lieu) on workday.
|
|
151
|
+
|
|
152
|
+
Despite the wording, this usually only applies to Monday only for
|
|
153
|
+
holidays, consecutive holidays all have their own special in lieu
|
|
154
|
+
declared separately.
|
|
155
|
+
|
|
156
|
+
Data from 1992-1994 and 1998-2000 are declared discretely in
|
|
157
|
+
special_holidays declarations above.
|
|
158
|
+
|
|
159
|
+
Applied Automatically for Monday if on Weekends: 1961-1973
|
|
160
|
+
|
|
161
|
+
!!! note "Note"
|
|
162
|
+
No New Year's Eve (in lieu) for this period
|
|
163
|
+
|
|
164
|
+
No In Lieu days available: 1974-1988
|
|
165
|
+
|
|
166
|
+
Case-by-Case application for Workday if on Weekends: 1989-1994
|
|
167
|
+
|
|
168
|
+
Applied Automatically for Workday if on Weekends: 1995-1997
|
|
169
|
+
|
|
170
|
+
Case-by-Case application for Workday if on Weekends: 1998-2000
|
|
171
|
+
|
|
172
|
+
Applied Automatically for Workday if on Weekends: 2001-Present
|
|
175
173
|
|
|
176
174
|
Limitations:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
- Royal Ploughing Ceremony Day is date is announced on an annual basis
|
|
184
|
-
by the Court Astrologers, thus need an annual update to the library here
|
|
185
|
-
|
|
186
|
-
Country created by: `arkid15r <https://github.com/arkid15r>`__
|
|
187
|
-
|
|
188
|
-
Country maintained by: `PPsyrius <https://github.com/PPsyrius>`__
|
|
175
|
+
* This is only 100% accurate for 1997-2025; any future dates are up to the
|
|
176
|
+
Royal Thai Government Gazette which updates on a year-by-year basis.
|
|
177
|
+
* Thai Lunar Calendar Holidays only work until 2157 (B.E. 2700) as we only
|
|
178
|
+
have Thai year-type data for cross-checking until then.
|
|
179
|
+
* Royal Ploughing Ceremony Day is date is announced on an annual basis
|
|
180
|
+
by the Court Astrologers, thus need an annual update to the library here
|
|
189
181
|
"""
|
|
190
182
|
|
|
191
183
|
country = "TH"
|
|
@@ -980,7 +972,7 @@ class ThailandStaticHolidays:
|
|
|
980
972
|
วันหยุดพิเศษ (เพิ่มเติม) - see Bank of Thailand's DB for Cross-Check.
|
|
981
973
|
|
|
982
974
|
Special Bank Holidays Pre-1992:
|
|
983
|
-
|
|
975
|
+
* [HM Queen Rambai Barni's Royal Cremation Ceremony](https://ratchakitcha.soc.go.th/documents/1560949.pdf)
|
|
984
976
|
"""
|
|
985
977
|
|
|
986
978
|
# Special In Lieu Holiday.
|
|
@@ -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
|
|
@@ -27,19 +27,20 @@ from holidays.holiday_base import HolidayBase
|
|
|
27
27
|
class TimorLeste(
|
|
28
28
|
HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays, StaticHolidays
|
|
29
29
|
):
|
|
30
|
-
"""
|
|
30
|
+
"""Timor Leste holidays.
|
|
31
|
+
|
|
31
32
|
References:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
* [2005 Law](https://mj.gov.tl/jornal/lawsTL/RDTL-Law/RDTL-Laws/Law-2005-10.pdf)
|
|
34
|
+
* [2016 Amendment](http://timor-leste.gov.tl/?p=14494&lang=en)
|
|
35
|
+
* [2022](http://timor-leste.gov.tl/?p=30266&lang=en)
|
|
36
|
+
* [2023 (en_US)](http://timor-leste.gov.tl/?p=31750&lang=en)
|
|
37
|
+
* [2023 (pt_PT)](http://timor-leste.gov.tl/?p=31750&lang=pt)
|
|
38
|
+
* [2023 (tet)](http://timor-leste.gov.tl/?p=31750&lang=tp)
|
|
39
|
+
* [2024](http://timor-leste.gov.tl/?p=35833&lang=en)
|
|
40
|
+
* [2025](https://timor-leste.gov.tl/?p=41492&lang=en)
|
|
39
41
|
|
|
40
42
|
Limitations:
|
|
41
|
-
|
|
42
|
-
- Exact Islamic holidays dates are only available for 2011-2023; the rest are estimates.
|
|
43
|
+
* Exact Islamic holidays dates are only available for 2011-2025; the rest are estimates.
|
|
43
44
|
"""
|
|
44
45
|
|
|
45
46
|
country = "TL"
|
|
@@ -47,14 +48,22 @@ class TimorLeste(
|
|
|
47
48
|
default_language = "pt_TL"
|
|
48
49
|
# %s (estimated).
|
|
49
50
|
estimated_label = tr("%s (aproximada)")
|
|
50
|
-
supported_languages = ("en_US", "pt_TL", "tet")
|
|
51
|
+
supported_languages = ("en_TL", "en_US", "pt_TL", "tet", "th")
|
|
51
52
|
# Law No. 10/2005 Of 10 August, Public Holidays and Official Commemorative Dates.
|
|
52
53
|
start_year = 2006
|
|
53
54
|
|
|
54
|
-
def __init__(self, *args, **kwargs):
|
|
55
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
56
|
+
"""
|
|
57
|
+
Args:
|
|
58
|
+
islamic_show_estimated:
|
|
59
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
60
|
+
if holiday date is estimated.
|
|
61
|
+
"""
|
|
55
62
|
ChristianHolidays.__init__(self)
|
|
56
63
|
InternationalHolidays.__init__(self)
|
|
57
|
-
IslamicHolidays.__init__(
|
|
64
|
+
IslamicHolidays.__init__(
|
|
65
|
+
self, cls=TimorLesteIslamicHolidays, show_estimated=islamic_show_estimated
|
|
66
|
+
)
|
|
58
67
|
StaticHolidays.__init__(self, TimorLesteStaticHolidays)
|
|
59
68
|
super().__init__(*args, **kwargs)
|
|
60
69
|
|
|
@@ -71,7 +80,7 @@ class TimorLeste(
|
|
|
71
80
|
# Veteran's Day.
|
|
72
81
|
self._add_holiday_mar_3(tr("Dia dos Veteranos"))
|
|
73
82
|
|
|
74
|
-
#
|
|
83
|
+
# International Worker's Day.
|
|
75
84
|
self._add_labor_day(tr("Dia Mundial do Trabalhador"))
|
|
76
85
|
|
|
77
86
|
# Restoration of Independence Day.
|
|
@@ -141,7 +150,7 @@ class TimorLeste(
|
|
|
141
150
|
def _populate_workday_holidays(self):
|
|
142
151
|
# Fixed Date Government Holidays.
|
|
143
152
|
|
|
144
|
-
#
|
|
153
|
+
# International Children's Day.
|
|
145
154
|
self._add_childrens_day(tr("Dia Mundial da Criança"))
|
|
146
155
|
|
|
147
156
|
self._add_holiday_aug_20(
|
|
@@ -158,7 +167,7 @@ class TimorLeste(
|
|
|
158
167
|
# National Women's Day.
|
|
159
168
|
self._add_holiday_nov_3(tr("Dia Nacional da Mulher"))
|
|
160
169
|
|
|
161
|
-
#
|
|
170
|
+
# International Human Rights Day.
|
|
162
171
|
self._add_holiday_dec_10(tr("Dia Mundial dos Direitos Humanos"))
|
|
163
172
|
|
|
164
173
|
# Variable Date Government Holidays.
|
|
@@ -197,6 +206,7 @@ class TimorLesteIslamicHolidays(_CustomIslamicHolidays):
|
|
|
197
206
|
2022: (JUL, 9),
|
|
198
207
|
2023: (JUN, 29),
|
|
199
208
|
2024: (JUN, 17),
|
|
209
|
+
2025: (JUN, 6),
|
|
200
210
|
}
|
|
201
211
|
|
|
202
212
|
EID_AL_FITR_DATES = {
|
|
@@ -214,6 +224,7 @@ class TimorLesteIslamicHolidays(_CustomIslamicHolidays):
|
|
|
214
224
|
2022: (MAY, 2),
|
|
215
225
|
2023: (APR, 22),
|
|
216
226
|
2024: (APR, 10),
|
|
227
|
+
2025: (MAR, 31),
|
|
217
228
|
}
|
|
218
229
|
|
|
219
230
|
|
|
@@ -482,5 +493,15 @@ class TimorLesteStaticHolidays:
|
|
|
482
493
|
(OCT, 31, special_national_holidays),
|
|
483
494
|
# https://timor-leste.gov.tl/?p=40955&lang=en
|
|
484
495
|
(NOV, 29, special_national_holidays),
|
|
496
|
+
# https://timor-leste.gov.tl/?p=41325&lang=en
|
|
497
|
+
(DEC, 24, special_national_holidays),
|
|
498
|
+
),
|
|
499
|
+
2025: (
|
|
500
|
+
# https://timor-leste.gov.tl/?p=41361&lang=en
|
|
501
|
+
(JAN, 2, special_national_holidays),
|
|
502
|
+
# https://timor-leste.gov.tl/?p=41592&lang=en
|
|
503
|
+
(JAN, 29, special_national_holidays),
|
|
504
|
+
# https://timor-leste.gov.tl/?p=42076&lang=en
|
|
505
|
+
(MAR, 5, special_national_holidays),
|
|
485
506
|
),
|
|
486
507
|
}
|
holidays/countries/tonga.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# specific sets of holidays on the fly. It aims to make determining whether a
|
|
5
5
|
# specific date is a holiday as fast and flexible as possible.
|
|
6
6
|
#
|
|
7
|
-
# Authors: Vacanza Team and individual contributors (see AUTHORS file)
|
|
7
|
+
# Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
|
|
8
8
|
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
|
9
9
|
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
|
10
10
|
# Website: https://github.com/vacanza/holidays
|
|
@@ -24,50 +24,53 @@ from holidays.observed_holiday_base import (
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class Tonga(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
27
|
-
"""
|
|
27
|
+
"""Tonga holidays.
|
|
28
|
+
|
|
28
29
|
References:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
* [1988 Rev. (to)](https://ago.gov.to/cms/images/LEGISLATION/PRINCIPAL/1919/1919-0008/LaokihengaahiAhoMaloloFaka-Puleanga_1x.pdf)
|
|
31
|
+
* [1988 Rev.](https://ago.gov.to/cms/images/LEGISLATION/PRINCIPAL/1919/1919-0008/PublicHolidaysAct_1.pdf)
|
|
32
|
+
* [Act 10 of 2010](http://www.paclii.org/to/legis/num_act/pha2010243/)
|
|
33
|
+
* [Act 5 of 2013](http://www.paclii.org/to/legis/num_act/pha2013243/)
|
|
34
|
+
* [2016 Rev.](https://ago.gov.to/cms/images/LEGISLATION/PRINCIPAL/1919/1919-0008/PublicHolidaysAct_2.pdf)
|
|
35
|
+
* [2020 Rev. (to)](https://ago.gov.to/cms/images/LEGISLATION/PRINCIPAL/1919/1919-0008/LaokihengaahiAhoMaloloFaka-Puleanga_3x.pdf)
|
|
36
|
+
* [2020 Rev.](https://ago.gov.to/cms/images/LEGISLATION/PRINCIPAL/1919/1919-0008/PublicHolidaysAct_3.pdf)
|
|
36
37
|
|
|
37
38
|
Checked With:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
* [2017](https://www.officeholidays.com/countries/tonga/2017)
|
|
40
|
+
* [2018](https://www.gov.to/press-release/tonga-public-holidays-for-2018/)
|
|
41
|
+
* [2019](https://www.gov.to/press-release/tonga-public-holidays-for-2019-2/)
|
|
42
|
+
* [2020](https://www.gov.to/press-release/tonga-public-holidays-for-2020/)
|
|
43
|
+
* [2021](https://www.gov.to/press-release/tonga-public-holidays-for-2021/)
|
|
44
|
+
* [2022](https://www.gov.to/press-release/tonga-public-holidays-for-2022/)
|
|
45
|
+
* [2023](https://www.gov.to/press-release/tonga-public-holidays-for-2023/)
|
|
46
|
+
* [2024](https://www.gov.to/press-release/tonga-public-holidays-for-2024/)
|
|
46
47
|
|
|
47
48
|
1988 Revision Observance Rule:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
|
|
50
|
+
Provided always that when any of the days specified falls upon a Sunday,
|
|
51
|
+
the next following Monday shall be a public holiday and that whenever
|
|
52
|
+
the twenty-sixth day of December falls upon a Monday the day following
|
|
53
|
+
shall be a public holiday. (Amended by Act 11 of 1970.)
|
|
52
54
|
|
|
53
55
|
2016 and 2020 Revision Observance Rule:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
56
|
+
|
|
57
|
+
Provided that when any public holidays specified, except Christmas Day, the
|
|
58
|
+
day immediately succeeding Christmas Day, New Years Day, Good Friday,
|
|
59
|
+
Easter Monday, ANZAC Day, Birthday of the reigning Sovereign of Tonga
|
|
60
|
+
and Birthday of the Heir to the Crown of Tonga, falls upon a Thursday,
|
|
61
|
+
Friday, Saturday or Sunday, that public holiday shall be celebrated on the next
|
|
62
|
+
following Monday; and if it falls on a Tuesday or Wednesday, that public
|
|
63
|
+
holiday shall be celebrated on the Monday before the actual public holiday.
|
|
64
|
+
(Amended by Act 10 of 2010: May 18, 2010.)
|
|
65
|
+
"Birthday of the reigning Sovereign of Tonga and Birthday of the Heir to
|
|
66
|
+
the Crown of Tonga" is add to the exempted list as seen above.
|
|
67
|
+
(Amended by Act 5 of 2013: Jun 28, 2013.)
|
|
68
|
+
|
|
69
|
+
Further provided that the Birthday of the reigning Sovereign of Tonga and the
|
|
70
|
+
Birthday of the Heir to the Crown of Tonga shall be celebrated on the day it
|
|
71
|
+
falls, unless it falls on a Sunday in which case it would be celebrated on the
|
|
72
|
+
next following Monday.
|
|
73
|
+
(Inserted by Act 5 of 2013: Jun 28, 2013.)
|
|
71
74
|
"""
|
|
72
75
|
|
|
73
76
|
country = "TO"
|
|
@@ -200,11 +203,12 @@ class TON(Tonga):
|
|
|
200
203
|
|
|
201
204
|
|
|
202
205
|
class TongaStaticHolidays:
|
|
203
|
-
"""
|
|
206
|
+
"""Tonga special holidays.
|
|
207
|
+
|
|
204
208
|
References:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
209
|
+
* <https://www.stuff.co.nz/sport/league/99338959/tonga-government-declares-public-holiday-over-rugby-league-teams-deeds>
|
|
210
|
+
* <https://www.rnz.co.nz/international/pacific-news/398653/tonga-declares-public-holiday-for-pm-pohiva-s-state-funeral>
|
|
211
|
+
* <https://www.nrl.com/news/2019/11/06/tonga-declare-public-holiday-for-woolfs-winning-warriors/>
|
|
208
212
|
"""
|
|
209
213
|
|
|
210
214
|
# Special Cases.
|
holidays/countries/tunisia.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,9 +25,15 @@ class Tunisia(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
25
25
|
estimated_label = tr("(تقدير) %s")
|
|
26
26
|
supported_languages = ("ar", "en_US")
|
|
27
27
|
|
|
28
|
-
def __init__(self, *args, **kwargs):
|
|
28
|
+
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
29
|
+
"""
|
|
30
|
+
Args:
|
|
31
|
+
islamic_show_estimated:
|
|
32
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
33
|
+
if holiday date is estimated.
|
|
34
|
+
"""
|
|
29
35
|
InternationalHolidays.__init__(self)
|
|
30
|
-
IslamicHolidays.__init__(self)
|
|
36
|
+
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
|
|
31
37
|
super().__init__(*args, **kwargs)
|
|
32
38
|
|
|
33
39
|
def _populate_public_holidays(self):
|