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/tanzania.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
|
|
@@ -27,35 +27,34 @@ from holidays.holiday_base import HolidayBase
|
|
|
27
27
|
class Tanzania(
|
|
28
28
|
HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays, StaticHolidays
|
|
29
29
|
):
|
|
30
|
-
"""
|
|
30
|
+
"""Tanzania holidays.
|
|
31
|
+
|
|
31
32
|
References:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
* [1962](https://old.tanzlii.org/tz/legislation/act/1962/48/)
|
|
34
|
+
* [1964](https://old.tanzlii.org/tz/legislation/act/1964/52/)
|
|
35
|
+
* [1966](https://old.tanzlii.org/tz/legislation/act/1966/39/)
|
|
36
|
+
* [1993](https://www.parliament.go.tz/polis/uploads/bills/acts/1566639469-The%20Written%20Laws%20(Miscellaneous%20Amendments)%20Act,%201993.pdf)
|
|
37
|
+
* [1994](https://www.parliament.go.tz/polis/uploads/bills/acts/1566638051-The%20Written%20Laws%20(Miscellaneous%20Amendments)%20(No.%202)%20Act,%201994.pdf)
|
|
38
|
+
* [2002](http://parliament.go.tz/polis/uploads/bills/acts/1454076376-ActNo-25-2002.pdf)
|
|
39
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Tanzania>
|
|
40
|
+
* <http://mytanzaniatimes.blogspot.com/2014/08/holiday-nane-nane-farmers-day-in.html>
|
|
41
|
+
* <https://www.theeastafrican.co.ke/tea/business/tanzania-declares-public-holiday-on-census-day-3918836>
|
|
42
|
+
* <https://www.dw.com/en/samia-suluhu-hassan-who-is-tanzanias-new-president/a-56932264>
|
|
42
43
|
|
|
43
44
|
Checked With:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
* [2023](https://www.bot.go.tz/webdocs/Other/2023%20public%20holidays.pdf)
|
|
46
|
+
* [2022](https://www.bot.go.tz/webdocs/Other/PUBLIC%20HOLIDAYS%202022.pdf)
|
|
47
|
+
* [2021](https://www.bot.go.tz/webdocs/Other/PUBLIC%20HOLIDAYS%202021.pdf)
|
|
48
|
+
* [2020](https://www.bot.go.tz/webdocs/Other/PUBLIC%20HOLIDAYS%202020.pdf)
|
|
49
|
+
* [2018](https://issamichuzi.blogspot.com/2017/11/sikukuu-za-kitaifa-zenye-mapumziko-kwa.html)
|
|
50
|
+
* [from 2013 onwards](https://www.timeanddate.com/holidays/tanzania/)
|
|
50
51
|
|
|
51
52
|
Limitations:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
- Exact Islamic holidays dates are only available for 2013-2023; the rest are estimates.
|
|
53
|
+
* Only works from 1994 onwards due to the lack of sources for certain legislation:
|
|
54
|
+
* Government Notices No. 79 of 1977
|
|
55
|
+
* Government Notices No. 300 of 1985
|
|
56
|
+
* Government Notices No. 296 of 1994
|
|
57
|
+
* Exact Islamic holidays dates are only available for 2013-2023; the rest are estimates.
|
|
59
58
|
"""
|
|
60
59
|
|
|
61
60
|
country = "TZ"
|
|
@@ -69,8 +68,10 @@ class Tanzania(
|
|
|
69
68
|
|
|
70
69
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
71
70
|
"""
|
|
72
|
-
:
|
|
73
|
-
|
|
71
|
+
Args:
|
|
72
|
+
islamic_show_estimated:
|
|
73
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
74
|
+
if holiday date is estimated.
|
|
74
75
|
"""
|
|
75
76
|
ChristianHolidays.__init__(self)
|
|
76
77
|
InternationalHolidays.__init__(self)
|
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,20 +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
|
-
|
|
39
|
-
|
|
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)
|
|
40
41
|
|
|
41
42
|
Limitations:
|
|
42
|
-
|
|
43
|
-
- 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.
|
|
44
44
|
"""
|
|
45
45
|
|
|
46
46
|
country = "TL"
|
|
@@ -48,14 +48,16 @@ class TimorLeste(
|
|
|
48
48
|
default_language = "pt_TL"
|
|
49
49
|
# %s (estimated).
|
|
50
50
|
estimated_label = tr("%s (aproximada)")
|
|
51
|
-
supported_languages = ("en_US", "pt_TL", "tet")
|
|
51
|
+
supported_languages = ("en_TL", "en_US", "pt_TL", "tet", "th")
|
|
52
52
|
# Law No. 10/2005 Of 10 August, Public Holidays and Official Commemorative Dates.
|
|
53
53
|
start_year = 2006
|
|
54
54
|
|
|
55
55
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
56
56
|
"""
|
|
57
|
-
:
|
|
58
|
-
|
|
57
|
+
Args:
|
|
58
|
+
islamic_show_estimated:
|
|
59
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
60
|
+
if holiday date is estimated.
|
|
59
61
|
"""
|
|
60
62
|
ChristianHolidays.__init__(self)
|
|
61
63
|
InternationalHolidays.__init__(self)
|
|
@@ -78,7 +80,7 @@ class TimorLeste(
|
|
|
78
80
|
# Veteran's Day.
|
|
79
81
|
self._add_holiday_mar_3(tr("Dia dos Veteranos"))
|
|
80
82
|
|
|
81
|
-
#
|
|
83
|
+
# International Worker's Day.
|
|
82
84
|
self._add_labor_day(tr("Dia Mundial do Trabalhador"))
|
|
83
85
|
|
|
84
86
|
# Restoration of Independence Day.
|
|
@@ -148,7 +150,7 @@ class TimorLeste(
|
|
|
148
150
|
def _populate_workday_holidays(self):
|
|
149
151
|
# Fixed Date Government Holidays.
|
|
150
152
|
|
|
151
|
-
#
|
|
153
|
+
# International Children's Day.
|
|
152
154
|
self._add_childrens_day(tr("Dia Mundial da Criança"))
|
|
153
155
|
|
|
154
156
|
self._add_holiday_aug_20(
|
|
@@ -165,7 +167,7 @@ class TimorLeste(
|
|
|
165
167
|
# National Women's Day.
|
|
166
168
|
self._add_holiday_nov_3(tr("Dia Nacional da Mulher"))
|
|
167
169
|
|
|
168
|
-
#
|
|
170
|
+
# International Human Rights Day.
|
|
169
171
|
self._add_holiday_dec_10(tr("Dia Mundial dos Direitos Humanos"))
|
|
170
172
|
|
|
171
173
|
# Variable Date Government Holidays.
|