holidays.countries.malaysia
Malaysia(*args, islamic_show_estimated=True, **kwargs)
Bases: ObservedHolidayBase, BuddhistCalendarHolidays, ChineseCalendarHolidays, ChristianHolidays, HinduCalendarHolidays, InternationalHolidays, IslamicHolidays, StaticHolidays
Malaysia holidays.
References
- Holidays Act 1951
- Holidays Ordinance (Sabah Cap. 56)
- Public Holidays Ordinance (Sarawak Cap. 8)
- https://en.wikipedia.org/wiki/Public_holidays_in_Malaysia
- https://web.archive.org/web/20250123115300/https://www.nst.com.my/news/nation/2020/03/571660/agongs-birthday-moved-june-6-june-8
- https://web.archive.org/web/20240228225038/https://www.nst.com.my/news/nation/2024/02/1014012/melaka-cm-suggests-declaring-feb-20-federal-public-holiday-mark
- https://web.archive.org/web/20251216120554/https://www.kabinet.gov.my/storage/2025/08/HKA-2026.pdf
Subdivisions Holidays References
Section 3 of Holidays Act 1951:
If any day specified in the Schedule falls on Sunday then the day following shall be a public holiday and if such day is already a public holiday, then the day following shall be a public holiday".
In Johor (until 1994 and in 2014-2024) and Kedah it's Friday to Sunday, in Kelantan and Terengganu - Saturday to Sunday.
| Parameters: |
|
|---|
country = 'MY'
class-attribute
instance-attribute
default_language = 'ms_MY'
class-attribute
instance-attribute
estimated_label = tr('%s (anggaran)')
class-attribute
instance-attribute
observed_label = tr('Cuti %s')
class-attribute
instance-attribute
observed_estimated_label = tr('Cuti %s (anggaran)')
class-attribute
instance-attribute
start_year = 1952
class-attribute
instance-attribute
subdivisions = ('01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16')
class-attribute
instance-attribute
subdivisions_aliases = {'Johor': '01', 'JHR': '01', 'Kedah': '02', 'KDH': '02', 'Kelantan': '03', 'KTN': '03', 'Melaka': '04', 'MLK': '04', 'Negeri Sembilan': '05', 'NSN': '05', 'Pahang': '06', 'PHG': '06', 'Pulau Pinang': '07', 'PNG': '07', 'Perak': '08', 'PRK': '08', 'Perlis': '09', 'PLS': '09', 'Selangor': '10', 'SGR': '10', 'Terengganu': '11', 'TRG': '11', 'Sabah': '12', 'SBH': '12', 'Sarawak': '13', 'SWK': '13', 'Wilayah Persekutuan Kuala Lumpur': '14', 'KUL': '14', 'Wilayah Persekutuan Labuan': '15', 'LBN': '15', 'Wilayah Persekutuan Putrajaya': '16', 'PJY': '16'}
class-attribute
instance-attribute
supported_languages = ('en_US', 'ms_MY', 'th')
class-attribute
instance-attribute
MY(*args, islamic_show_estimated=True, **kwargs)
Bases: Malaysia
| Parameters: |
|
|---|
MYS(*args, islamic_show_estimated=True, **kwargs)
Bases: Malaysia
| Parameters: |
|
|---|
MalaysiaBuddhistHolidays
Bases: _CustomBuddhistHolidays
VESAK_MAY_DATES = {2001: (MAY, 7), 2002: (MAY, 27), 2003: (MAY, 15), 2004: (MAY, 3), 2005: (MAY, 22), 2006: (MAY, 12), 2007: (MAY, 1), 2008: (MAY, 19), 2009: (MAY, 9), 2010: (MAY, 28), 2011: (MAY, 17), 2012: (MAY, 5), 2013: (MAY, 24), 2014: (MAY, 13), 2015: (MAY, 3), 2016: (MAY, 21), 2017: (MAY, 10), 2018: (MAY, 29), 2019: (MAY, 19), 2020: (MAY, 7), 2021: (MAY, 26), 2022: (MAY, 15), 2023: (MAY, 4), 2024: (MAY, 22), 2025: (MAY, 12), 2026: (MAY, 31)}
class-attribute
instance-attribute
MalaysiaChineseHolidays(calendar=CHINESE_CALENDAR)
Bases: _CustomChineseHolidays
LUNAR_NEW_YEAR_DATES_CONFIRMED_YEARS = (2001, 2026)
class-attribute
instance-attribute
MalaysiaHinduHolidays
Bases: _CustomHinduHolidays
DIWALI_DATES = {2001: (NOV, 14), 2002: (NOV, 3), 2003: (OCT, 23), 2004: (NOV, 11), 2005: (NOV, 1), 2006: (OCT, 21), 2007: (NOV, 8), 2008: (OCT, 27), 2009: (OCT, 17), 2010: (NOV, 5), 2011: (OCT, 26), 2012: (NOV, 13), 2013: (NOV, 2), 2014: (OCT, 22), 2015: (NOV, 10), 2016: (OCT, 29), 2017: (OCT, 18), 2018: (NOV, 6), 2019: (OCT, 27), 2020: (NOV, 14), 2021: (NOV, 4), 2022: (OCT, 24), 2023: (NOV, 12), 2024: (OCT, 31), 2025: (OCT, 20), 2026: (NOV, 8)}
class-attribute
instance-attribute
THAIPUSAM_DATES = {2018: (JAN, 31), 2019: (JAN, 21), 2020: (FEB, 8), 2021: (JAN, 28), 2022: (JAN, 18), 2023: (FEB, 5), 2024: (JAN, 25), 2025: (FEB, 11), 2026: (FEB, 1), 2027: (JAN, 22)}
class-attribute
instance-attribute
MalaysiaIslamicHolidays(calendar_delta_days=0)
Bases: _CustomIslamicHolidays
| Parameters: |
|
|---|