holidays.countries.thailand

Thailand(*args, **kwargs)

Bases: ObservedHolidayBase, InternationalHolidays, StaticHolidays, ThaiCalendarHolidays

Thailand holidays.

References
Checked with
In Lieus
Certain holidays references

Info

If Public Holiday falls on weekends, (in lieu) on workday.

Despite the wording, this usually only applies to Monday only for holidays, consecutive holidays all have their own special in lieu declared separately.

Data from 1992-1994 and 1998-2000 are declared discretely in special_holidays declarations above.

Applied Automatically for Monday if on Weekends: 1961-1973

Note

No New Year's Eve (in lieu) for this period

No In Lieu days available: 1974-1988

Case-by-Case application for Workday if on Weekends: 1989-1994

Applied Automatically for Workday if on Weekends: 1995-1997

Case-by-Case application for Workday if on Weekends: 1998-2000

Applied Automatically for Workday if on Weekends: 2001-Present

Limitations
  • This is only 100% accurate for 1997-2025; any future dates are up to the Royal Thai Government Gazette which updates on a year-by-year basis.
  • Thai Lunar Calendar Holidays only work until 2157 (B.E. 2700) as we only have Thai year-type data for cross-checking until then.
  • Royal Ploughing Ceremony Day is date is announced on an annual basis by the Court Astrologers, thus need an annual update to the library here

country = 'TH' class-attribute instance-attribute

default_language = 'th' class-attribute instance-attribute

observed_label = tr('ชดเชย%s') class-attribute instance-attribute

start_year = 1914 class-attribute instance-attribute

supported_categories = (ARMED_FORCES, BANK, GOVERNMENT, PUBLIC, SCHOOL, WORKDAY) class-attribute instance-attribute

supported_languages = ('en_US', 'th', 'uk') class-attribute instance-attribute

TH(*args, **kwargs)

Bases: Thailand

THA(*args, **kwargs)

Bases: Thailand

ThailandStaticHolidays

วันหยุดพิเศษ (เพิ่มเติม) - see Bank of Thailand's DB for Cross-Check.

Special Bank Holidays Pre-1992

thai_special_in_lieu_holidays = tr('วันหยุดชดเชย') class-attribute instance-attribute

thai_election = tr('วันเลือกตั้ง') class-attribute instance-attribute

thai_bridge_public_holiday = tr('วันหยุดพิเศษ (เพิ่มเติม)') class-attribute instance-attribute

rama_ix_sixty_accession = tr('พระราชพิธีฉลองสิริราชสมบัติครบ 60 ปี พ.ศ. 2549') class-attribute instance-attribute

thai_political_emergency_lockdown = tr('วันหยุดพิเศษ (การเมือง)') class-attribute instance-attribute

thai_flood_2011_emergency_lockdown = tr('วันหยุดพิเศษ (มหาอุทกภัย พ.ศ. 2554)') class-attribute instance-attribute

songkran_festival = tr('วันสงกรานต์') class-attribute instance-attribute

special_bank_holidays = {1985: (APR, 9, tr('วันพระราชพิธีถวายพระเพลิงพระบรมศพสมเด็จพระนางเจ้ารำไพพรรณี'))} class-attribute instance-attribute

special_public_holidays = {1992: ((MAY, 18, thai_special_in_lieu_holidays), (DEC, 7, thai_special_in_lieu_holidays)), 1993: ((MAR, 8, thai_special_in_lieu_holidays), (MAY, 3, thai_special_in_lieu_holidays), (OCT, 25, thai_special_in_lieu_holidays), (DEC, 6, thai_special_in_lieu_holidays)), 1994: ((JAN, 3, thai_special_in_lieu_holidays), (MAY, 2, thai_special_in_lieu_holidays), (JUL, 25, thai_special_in_lieu_holidays), (OCT, 24, thai_special_in_lieu_holidays), (DEC, 12, thai_special_in_lieu_holidays)), 1996: (JUN, 10, tr('พระราชพิธีกาญจนาภิเษก พ.ศ. 2539')), 1998: ((MAY, 11, thai_special_in_lieu_holidays), (DEC, 7, thai_special_in_lieu_holidays)), 1999: ((MAY, 3, thai_special_in_lieu_holidays), (MAY, 31, thai_special_in_lieu_holidays), (OCT, 25, thai_special_in_lieu_holidays), (DEC, 6, thai_special_in_lieu_holidays)), 2000: ((JAN, 3, thai_special_in_lieu_holidays), (FEB, 21, thai_special_in_lieu_holidays), (AUG, 14, thai_special_in_lieu_holidays), (DEC, 11, thai_special_in_lieu_holidays), (DEC, 29, thai_election)), 2006: ((APR, 19, thai_election), (JUN, 9, rama_ix_sixty_accession), (JUN, 12, rama_ix_sixty_accession), (JUN, 13, rama_ix_sixty_accession), (SEP, 20, tr('วันหยุดพิเศษ (คมช.)'))), 2009: ((JAN, 2, thai_bridge_public_holiday), (APR, 10, thai_political_emergency_lockdown), (APR, 16, thai_political_emergency_lockdown), (APR, 17, thai_political_emergency_lockdown), (JUL, 6, thai_bridge_public_holiday)), 2010: ((MAY, 20, thai_bridge_public_holiday), (MAY, 21, thai_bridge_public_holiday), (AUG, 13, thai_bridge_public_holiday)), 2011: ((MAY, 16, thai_bridge_public_holiday), (OCT, 27, thai_flood_2011_emergency_lockdown), (OCT, 28, thai_flood_2011_emergency_lockdown), (OCT, 29, thai_flood_2011_emergency_lockdown), (OCT, 30, thai_flood_2011_emergency_lockdown), (OCT, 31, thai_flood_2011_emergency_lockdown)), 2012: (APR, 9, thai_bridge_public_holiday), 2013: (DEC, 30, thai_bridge_public_holiday), 2014: (AUG, 11, thai_bridge_public_holiday), 2015: ((JAN, 2, thai_bridge_public_holiday), (MAY, 4, thai_bridge_public_holiday)), 2016: ((MAY, 6, thai_bridge_public_holiday), (JUL, 18, thai_bridge_public_holiday), (OCT, 14, tr('วันหยุดพิเศษ (ร่วมถวายอาลัย ส่งดวงพระวิญญาณพระบรมศพ)'))), 2017: (OCT, 26, tr('วันพระราชพิธีถวายพระเพลิงพระบรมศพพระบาทสมเด็จพระปรมินทรมหาภูมิพลอดุลยเดช')), 2019: (MAY, 6, tr('พระราชพิธีบรมราชาภิเษก พระบาทสมเด็จพระวชิรเกล้าเจ้าอยู่หัว')), 2020: ((NOV, 19, thai_bridge_public_holiday), (NOV, 20, thai_bridge_public_holiday), (DEC, 11, thai_bridge_public_holiday)), 2021: ((FEB, 12, thai_bridge_public_holiday), (APR, 12, thai_bridge_public_holiday), (SEP, 24, thai_bridge_public_holiday)), 2022: ((JUL, 15, thai_bridge_public_holiday), (JUL, 29, thai_bridge_public_holiday), (OCT, 14, thai_bridge_public_holiday), (DEC, 30, thai_bridge_public_holiday)), 2023: ((MAY, 5, thai_bridge_public_holiday), (JUL, 31, thai_bridge_public_holiday), (DEC, 29, thai_bridge_public_holiday)), 2024: ((APR, 12, thai_bridge_public_holiday), (DEC, 30, thai_bridge_public_holiday)), 2025: ((JUN, 2, thai_bridge_public_holiday), (AUG, 11, thai_bridge_public_holiday)), 2026: (JAN, 2, thai_bridge_public_holiday)} class-attribute instance-attribute

special_workday_holidays = {1999: (MAY, 14, tr('วันพืชมงคล'))} class-attribute instance-attribute

special_public_holidays_observed = {2007: (DEC, 24, thai_election), 2020: ((JUL, 27, songkran_festival), (SEP, 4, songkran_festival), (SEP, 7, songkran_festival))} class-attribute instance-attribute