holidays.countries.malaysia
Classes
|
An subclass of |
|
An subclass of |
|
An subclass of |
- class holidays.countries.malaysia.Malaysia(*args, **kwargs)
Bases:
ObservedHolidayBase
,BuddhistCalendarHolidays
,ChineseCalendarHolidays
,ChristianHolidays
,HinduCalendarHolidays
,InternationalHolidays
,IslamicHolidays
,StaticHolidays
An subclass of
HolidayBase
representing public holidays in Malaysia.If
subdiv
for a state is not supplied, only nationwide holidays are returned. The followingsubdiv
state codes are used (ISO 3166-2 subdivision codes are not yet supported):JHR: Johor
KDH: Kedah
KTN: Kelantan
MLK: Melaka
NSN: Negeri Sembilan
PHG: Pahang
PRK: Perak
PLS: Perlis
PNG: Pulau Pinang
SBH: Sabah
SWK: Sarawak
SGR: Selangor
TRG: Terengganu
KUL: FT Kuala Lumpur
LBN: FT Labuan
PJY: FT Putrajaya
Limitations:
Prior to 2021: holidays are not accurate.
2027 and later: Thaipusam dates are are estimated, and so denoted.
Section 3 of Malaysian Holidays Act: “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 and Kedah it’s Friday -> Sunday, in Kelantan and Terengganu it’s Saturday -> Sunday
Reference: Wikipedia
Country created by: Eden
Country maintained by: Mike Borsetti
See parameters and usage in
HolidayBase
.- country: str = 'MY'
The country’s ISO 3166-1 alpha-2 code.
- observed_label = '%s (in lieu)'
- subdivisions: Tuple[str, ...] = ('JHR', 'KDH', 'KTN', 'KUL', 'LBN', 'MLK', 'NSN', 'PHG', 'PJY', 'PLS', 'PNG', 'PRK', 'SBH', 'SGR', 'SWK', 'TRG')
The subdivisions supported for this country (see documentation).
- class holidays.countries.malaysia.MY(*args, **kwargs)
Bases:
Malaysia
An subclass of
HolidayBase
representing public holidays in Malaysia.If
subdiv
for a state is not supplied, only nationwide holidays are returned. The followingsubdiv
state codes are used (ISO 3166-2 subdivision codes are not yet supported):JHR: Johor
KDH: Kedah
KTN: Kelantan
MLK: Melaka
NSN: Negeri Sembilan
PHG: Pahang
PRK: Perak
PLS: Perlis
PNG: Pulau Pinang
SBH: Sabah
SWK: Sarawak
SGR: Selangor
TRG: Terengganu
KUL: FT Kuala Lumpur
LBN: FT Labuan
PJY: FT Putrajaya
Limitations:
Prior to 2021: holidays are not accurate.
2027 and later: Thaipusam dates are are estimated, and so denoted.
Section 3 of Malaysian Holidays Act: “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 and Kedah it’s Friday -> Sunday, in Kelantan and Terengganu it’s Saturday -> Sunday
Reference: Wikipedia
Country created by: Eden
Country maintained by: Mike Borsetti
See parameters and usage in
HolidayBase
.
- class holidays.countries.malaysia.MYS(*args, **kwargs)
Bases:
Malaysia
An subclass of
HolidayBase
representing public holidays in Malaysia.If
subdiv
for a state is not supplied, only nationwide holidays are returned. The followingsubdiv
state codes are used (ISO 3166-2 subdivision codes are not yet supported):JHR: Johor
KDH: Kedah
KTN: Kelantan
MLK: Melaka
NSN: Negeri Sembilan
PHG: Pahang
PRK: Perak
PLS: Perlis
PNG: Pulau Pinang
SBH: Sabah
SWK: Sarawak
SGR: Selangor
TRG: Terengganu
KUL: FT Kuala Lumpur
LBN: FT Labuan
PJY: FT Putrajaya
Limitations:
Prior to 2021: holidays are not accurate.
2027 and later: Thaipusam dates are are estimated, and so denoted.
Section 3 of Malaysian Holidays Act: “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 and Kedah it’s Friday -> Sunday, in Kelantan and Terengganu it’s Saturday -> Sunday
Reference: Wikipedia
Country created by: Eden
Country maintained by: Mike Borsetti
See parameters and usage in
HolidayBase
.
- class holidays.countries.malaysia.MalaysiaBuddhistHolidays
Bases:
_CustomBuddhistHolidays
- VESAK_MAY_DATES_CUSTOM_CALENDAR = {2001: (5, 7), 2002: (5, 27), 2003: (5, 15), 2004: (5, 3), 2005: (5, 22), 2006: (5, 12), 2007: (5, 1), 2008: (5, 19), 2009: (5, 9), 2010: (5, 28), 2011: (5, 17), 2012: (5, 5), 2013: (5, 24), 2014: (5, 13), 2015: (5, 3), 2016: (5, 21), 2017: (5, 10), 2018: (5, 29), 2019: (5, 19), 2020: (5, 7), 2021: (5, 26), 2022: (5, 15), 2023: (5, 4), 2024: (5, 22)}
- class holidays.countries.malaysia.MalaysiaChineseHolidays
Bases:
_CustomChineseHolidays
- LUNAR_NEW_YEAR_DATES_CUSTOM_CALENDAR = {2001: (1, 24), 2002: (2, 12), 2003: (2, 1), 2004: (1, 22), 2005: (2, 9), 2006: (1, 29), 2007: (2, 18), 2008: (2, 7), 2009: (1, 26), 2010: (2, 14), 2011: (2, 3), 2012: (1, 23), 2013: (2, 10), 2014: (1, 31), 2015: (2, 19), 2016: (2, 8), 2017: (1, 28), 2018: (2, 16), 2019: (2, 5), 2020: (1, 25), 2021: (2, 12), 2022: (2, 1), 2023: (1, 22), 2024: (2, 10)}
- class holidays.countries.malaysia.MalaysiaHinduHolidays
Bases:
_CustomHinduHolidays
- DIWALI_DATES_CUSTOM_CALENDAR = {2001: (11, 14), 2002: (11, 3), 2003: (10, 23), 2004: (11, 11), 2005: (11, 1), 2006: (10, 21), 2007: (11, 8), 2008: (10, 27), 2009: (10, 17), 2010: (11, 5), 2011: (10, 26), 2012: (11, 13), 2013: (11, 2), 2014: (10, 22), 2015: (11, 10), 2016: (10, 29), 2017: (10, 18), 2018: (11, 6), 2019: (10, 27), 2020: (11, 14), 2021: (11, 4), 2022: (10, 24), 2023: (11, 12), 2024: (10, 31)}
- THAIPUSAM_DATES_CUSTOM_CALENDAR = {2018: (1, 31), 2019: (1, 21), 2020: (2, 8), 2021: (1, 28), 2022: (1, 18), 2023: (2, 5), 2024: (1, 25), 2025: (2, 11), 2026: (2, 1), 2027: (1, 22)}
- class holidays.countries.malaysia.MalaysiaIslamicHolidays
Bases:
_CustomIslamicHolidays
- EID_AL_ADHA_DATES_CUSTOM_CALENDAR = {2001: (3, 6), 2002: (2, 23), 2003: (2, 12), 2004: (2, 2), 2005: (1, 21), 2006: ((1, 10), (12, 31)), 2007: (12, 20), 2008: (12, 9), 2009: (11, 28), 2010: (11, 17), 2011: (11, 7), 2012: (10, 26), 2013: (10, 15), 2014: (10, 5), 2015: (9, 24), 2016: (9, 12), 2017: (9, 1), 2018: (8, 22), 2019: (8, 11), 2020: (7, 31), 2021: (7, 20), 2022: (7, 10), 2023: (6, 29), 2024: (6, 17)}
- EID_AL_FITR_DATES_CUSTOM_CALENDAR = {2001: (12, 17), 2002: (12, 6), 2003: (11, 26), 2004: (11, 14), 2005: (11, 3), 2006: (10, 24), 2007: (10, 13), 2008: (10, 1), 2009: (9, 20), 2010: (9, 10), 2011: (8, 31), 2012: (8, 19), 2013: (8, 8), 2014: (7, 28), 2015: (7, 17), 2016: (7, 6), 2017: (6, 25), 2018: (6, 15), 2019: (6, 5), 2020: (5, 24), 2021: (5, 13), 2022: (5, 2), 2023: (4, 22), 2024: (4, 10)}
- HARI_HOL_JOHOR_DATES_CUSTOM_CALENDAR = {2011: (1, 12), 2012: ((1, 1), (12, 20)), 2013: (12, 10), 2014: (11, 29), 2015: (11, 19), 2016: (11, 7), 2017: (10, 27), 2018: (10, 15), 2019: (10, 5), 2020: (9, 24), 2021: (9, 13), 2022: (9, 3), 2024: (8, 11)}
- HIJRI_NEW_YEAR_DATES_CUSTOM_CALENDAR = {2001: (3, 26), 2002: (3, 15), 2003: (3, 5), 2004: (2, 22), 2005: (2, 10), 2006: (1, 31), 2007: (1, 20), 2008: ((1, 10), (12, 29)), 2009: (12, 18), 2010: (12, 8), 2011: (11, 27), 2012: (11, 15), 2013: (11, 5), 2014: (10, 25), 2015: (10, 14), 2016: (10, 2), 2017: (9, 22), 2018: (9, 11), 2019: (9, 1), 2020: (8, 20), 2021: (8, 10), 2022: (7, 30), 2024: (7, 7)}
- ISRA_AND_MIRAJ_DATES_CUSTOM_CALENDAR = {2001: (10, 15), 2002: (10, 4), 2003: (9, 24), 2004: (9, 12), 2005: (9, 1), 2006: (8, 22), 2007: (8, 11), 2008: (7, 31), 2009: (7, 20), 2010: (7, 9), 2011: (6, 29), 2012: (6, 17), 2013: (6, 6), 2014: (5, 27), 2015: (5, 16), 2016: (5, 5), 2017: (4, 24), 2018: (4, 14), 2019: (4, 3), 2020: (3, 22), 2021: (3, 11), 2022: (3, 1), 2023: (2, 18), 2024: (2, 8)}
- MAWLID_DATES_CUSTOM_CALENDAR = {2001: (6, 4), 2002: (5, 24), 2003: (5, 14), 2004: (5, 2), 2005: (4, 21), 2006: (4, 11), 2007: (3, 31), 2008: (3, 20), 2009: (3, 9), 2010: (2, 26), 2011: (2, 16), 2012: (2, 5), 2013: (1, 24), 2014: (1, 14), 2015: ((1, 3), (12, 24)), 2016: (12, 12), 2017: (12, 1), 2018: (11, 20), 2019: (11, 9), 2020: (10, 29), 2021: (10, 19), 2022: (10, 10), 2024: (9, 16)}
- NUZUL_AL_QURAN_DATES_CUSTOM_CALENDAR = {2001: (12, 3), 2002: (11, 22), 2003: (11, 12), 2004: (11, 1), 2005: (10, 21), 2006: (10, 10), 2007: (9, 29), 2008: (9, 18), 2009: (9, 7), 2010: (8, 27), 2011: (8, 17), 2012: (8, 5), 2013: (7, 25), 2014: (7, 15), 2015: (7, 4), 2016: (6, 22), 2017: (6, 12), 2018: (6, 2), 2019: (5, 22), 2020: (5, 10), 2021: (4, 29), 2022: (4, 19), 2023: (4, 8), 2024: (3, 28)}
- RAMADAN_BEGINNING_DATES_CUSTOM_CALENDAR = {2001: (11, 17), 2002: (11, 6), 2003: (10, 27), 2004: (10, 16), 2005: (10, 5), 2006: (9, 24), 2007: (9, 13), 2008: (9, 2), 2009: (8, 22), 2010: (8, 11), 2011: (8, 1), 2012: (7, 20), 2013: (7, 9), 2014: (6, 29), 2015: (6, 18), 2016: (6, 7), 2017: (5, 27), 2018: (5, 17), 2019: (5, 6), 2020: (4, 24), 2021: (4, 13), 2022: (4, 3), 2023: (3, 23), 2024: (3, 12)}