holidays.countries.sri_lanka

SriLanka(*args, islamic_show_estimated=True, **kwargs)

Bases: HolidayBase, ChristianHolidays, HinduCalendarHolidays, InternationalHolidays, IslamicHolidays, SinhalaCalendarHolidays, StaticHolidays

Sri Lanka holidays.

References
Cross-Checked With
Parameters:
  • islamic_show_estimated (bool, default: True ) –

    Whether to add "estimated" label to Islamic holidays name if holiday date is estimated.

In Sri Lanka, the dates of the Islamic calendar usually fall a day later than the corresponding dates in the Umm al-Qura calendar.

country = 'LK' class-attribute instance-attribute

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

default_language = 'si_LK' class-attribute instance-attribute

estimated_label = tr('%s (අනුමානිත)') class-attribute instance-attribute

supported_languages = ('en_US', 'si_LK', 'ta_LK') class-attribute instance-attribute

start_year = 2003 class-attribute instance-attribute

end_year = 2026 class-attribute instance-attribute

LK(*args, islamic_show_estimated=True, **kwargs)

Bases: SriLanka

Parameters:
  • islamic_show_estimated (bool, default: True ) –

    Whether to add "estimated" label to Islamic holidays name if holiday date is estimated.

In Sri Lanka, the dates of the Islamic calendar usually fall a day later than the corresponding dates in the Umm al-Qura calendar.

LKA(*args, islamic_show_estimated=True, **kwargs)

Bases: SriLanka

Parameters:
  • islamic_show_estimated (bool, default: True ) –

    Whether to add "estimated" label to Islamic holidays name if holiday date is estimated.

In Sri Lanka, the dates of the Islamic calendar usually fall a day later than the corresponding dates in the Umm al-Qura calendar.

SriLankaHinduHolidays

Bases: _CustomHinduHolidays

DIWALI_DATES = {2003: (OCT, 24), 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

SriLankaIslamicHolidays(calendar_delta_days=0)

Bases: _CustomIslamicHolidays

Parameters:
  • calendar_delta_days (int, default: 0 ) –

    Number of days to shift all calculated holiday dates. Positive values move holidays forward, negative values move them backward. Defaults to 0 (no shift).

EID_AL_ADHA_DATES_CONFIRMED_YEARS = (2003, 2026) class-attribute instance-attribute

EID_AL_ADHA_DATES = {2004: (FEB, 1), 2005: (JAN, 21), 2006: ((JAN, 11), (DEC, 31)), 2017: (SEP, 1), 2026: (MAY, 28)} class-attribute instance-attribute

EID_AL_FITR_DATES_CONFIRMED_YEARS = (2003, 2026) class-attribute instance-attribute

EID_AL_FITR_DATES = {2004: (NOV, 14), 2007: (OCT, 13), 2008: (OCT, 1), 2010: (SEP, 10), 2012: (AUG, 19), 2016: (JUL, 6), 2018: (JUN, 15), 2026: (MAR, 21)} class-attribute instance-attribute

MAWLID_DATES_CONFIRMED_YEARS = (2003, 2026) class-attribute instance-attribute

MAWLID_DATES = {2008: (MAR, 20), 2015: (JAN, 4), 2018: (NOV, 20), 2026: (AUG, 26)} class-attribute instance-attribute

SriLankaStaticHolidays

Sri Lanka special holdays.

References

adhi_binara_poya_name = tr('අධි බිනර පුර පසළොස්වක පෝය දිනය') class-attribute instance-attribute

adhi_esala_poya_name = tr('අධි ඇසල පුර පසළොස්වක පෝය දිනය') class-attribute instance-attribute

adhi_poson_poya_name = tr('අධි පොසොන් පුර පසළොස්වක පෝය දිනය') class-attribute instance-attribute

adhi_vap_poya_name = tr('අධි වප් පුර පසළොස්වක පෝය දිනය') class-attribute instance-attribute

adhi_vesak_poya_name = tr('අධි වෙසක් පුර පසළොස්වක පෝය දිනය') class-attribute instance-attribute

half_day_special_bank_holiday_name = tr('දින භාගයක විශේෂ බැංකු නිවාඩු දිනය') class-attribute instance-attribute

public_sector_holiday_name = tr('රාජ්ය අංශයේ නිවාඩු දිනය') class-attribute instance-attribute

special_bank_holiday_name = tr('විශේෂ බැංකු නිවාඩු දිනය') class-attribute instance-attribute

special_public_holiday_name = tr('විශේෂ රජයේ නිවාඩු දිනය') class-attribute instance-attribute

special_bank_holidays = {2005: ((MAY, 2, special_bank_holiday_name), (DEC, 26, special_bank_holiday_name)), 2007: ((FEB, 5, special_bank_holiday_name), (APR, 3, special_bank_holiday_name)), 2008: (APR, 18, special_bank_holiday_name), 2011: ((MAY, 2, special_bank_holiday_name), (DEC, 26, special_bank_holiday_name)), 2012: ((JAN, 16, special_bank_holiday_name), (FEB, 10, special_bank_holiday_name), (MAY, 7, special_bank_holiday_name)), 2013: (APR, 15, special_bank_holiday_name), 2014: (APR, 15, special_bank_holiday_name), 2015: (JAN, 5, special_bank_holiday_name), 2016: ((MAY, 2, special_bank_holiday_name), (MAY, 23, special_bank_holiday_name), (DEC, 26, special_bank_holiday_name)), 2018: ((JAN, 15, special_bank_holiday_name), (FEB, 5, special_bank_holiday_name)), 2019: ((APR, 15, special_bank_holiday_name), (NOV, 11, special_bank_holiday_name)), 2020: (APR, 14, special_bank_holiday_name), 2021: ((APR, 30, half_day_special_bank_holiday_name), (DEC, 24, half_day_special_bank_holiday_name)), 2022: ((OCT, 10, special_bank_holiday_name), (DEC, 26, special_bank_holiday_name)), 2023: (JAN, 16, special_bank_holiday_name), 2025: (APR, 15, special_bank_holiday_name)} class-attribute instance-attribute

special_government_holidays = {2020: (JUN, 4, public_sector_holiday_name), 2022: ((JUN, 13, public_sector_holiday_name), (JUN, 17, public_sector_holiday_name), (JUN, 24, public_sector_holiday_name), (JUL, 1, public_sector_holiday_name), (JUL, 8, public_sector_holiday_name), (JUL, 15, public_sector_holiday_name), (JUL, 22, public_sector_holiday_name), (JUL, 29, public_sector_holiday_name))} class-attribute instance-attribute

special_public_holidays = {2004: (JUL, 31, adhi_esala_poya_name), 2007: (MAY, 31, adhi_poson_poya_name), 2010: (APR, 28, adhi_vesak_poya_name), 2012: ((MAY, 7, special_public_holiday_name), (AUG, 31, adhi_binara_poya_name)), 2013: (APR, 15, special_public_holiday_name), 2015: (JUL, 1, adhi_esala_poya_name), 2016: (APR, 15, special_public_holiday_name), 2018: (MAY, 29, adhi_poson_poya_name), 2019: (MAY, 20, special_public_holiday_name), 2020: ((MAR, 16, special_public_holiday_name), (MAR, 17, special_public_holiday_name), (MAR, 18, special_public_holiday_name), (MAR, 19, special_public_holiday_name), (OCT, 1, adhi_vap_poya_name)), 2022: ((APR, 11, special_public_holiday_name), (APR, 12, special_public_holiday_name), (MAY, 2, special_public_holiday_name)), 2023: (JUL, 3, adhi_esala_poya_name), 2024: ((APR, 15, special_public_holiday_name), (SEP, 29, special_public_holiday_name)), 2026: (MAY, 30, adhi_poson_poya_name)} class-attribute instance-attribute

special_workday_holidays = {2003: (OCT, 24, tr('දීපවාලි උත්සව දිනය'))} class-attribute instance-attribute