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