holidays.countries.lesotho

Classes

LS(*args, **kwargs)

param years:

LSO(*args, **kwargs)

param years:

Lesotho(*args, **kwargs)

References: - https://en.wikipedia.org/wiki/Public_holidays_in_Lesotho - https://www.ilo.org/dyn/travail/docs/2093/Public%20Holidays%20Act%201995.pdf - https://www.timeanddate.com/holidays/lesotho/

LesothoStaticHolidays()

class holidays.countries.lesotho.Lesotho(*args, **kwargs)

Bases: HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays

References: - https://en.wikipedia.org/wiki/Public_holidays_in_Lesotho - https://www.ilo.org/dyn/travail/docs/2093/Public%20Holidays%20Act%201995.pdf - https://www.timeanddate.com/holidays/lesotho/

Parameters:
  • years – The year(s) to pre-calculate public holidays for at instantiation.

  • expand – Whether the entire year is calculated when one date from that year is requested.

  • observed – Whether to include the dates when public holiday are observed (e.g. a holiday falling on a Sunday being observed the following Monday). This doesn’t work for all countries.

  • subdiv – The subdivision (e.g. state or province) as a ISO 3166-2 code or its alias; not implemented for all countries (see documentation).

  • provdeprecated use subdiv instead.

  • statedeprecated use subdiv instead.

  • language – The language which the returned holiday names will be translated into. It must be an ISO 639-1 (2-letter) language code. If the language translation is not supported the original holiday names will be used.

  • categories – Requested holiday categories.

Returns:

A HolidayBase object matching the country.

country: str = 'LS'

The country’s ISO 3166-1 alpha-2 code.

class holidays.countries.lesotho.LS(*args, **kwargs)

Bases: Lesotho

Parameters:
  • years – The year(s) to pre-calculate public holidays for at instantiation.

  • expand – Whether the entire year is calculated when one date from that year is requested.

  • observed – Whether to include the dates when public holiday are observed (e.g. a holiday falling on a Sunday being observed the following Monday). This doesn’t work for all countries.

  • subdiv – The subdivision (e.g. state or province) as a ISO 3166-2 code or its alias; not implemented for all countries (see documentation).

  • provdeprecated use subdiv instead.

  • statedeprecated use subdiv instead.

  • language – The language which the returned holiday names will be translated into. It must be an ISO 639-1 (2-letter) language code. If the language translation is not supported the original holiday names will be used.

  • categories – Requested holiday categories.

Returns:

A HolidayBase object matching the country.

class holidays.countries.lesotho.LSO(*args, **kwargs)

Bases: Lesotho

Parameters:
  • years – The year(s) to pre-calculate public holidays for at instantiation.

  • expand – Whether the entire year is calculated when one date from that year is requested.

  • observed – Whether to include the dates when public holiday are observed (e.g. a holiday falling on a Sunday being observed the following Monday). This doesn’t work for all countries.

  • subdiv – The subdivision (e.g. state or province) as a ISO 3166-2 code or its alias; not implemented for all countries (see documentation).

  • provdeprecated use subdiv instead.

  • statedeprecated use subdiv instead.

  • language – The language which the returned holiday names will be translated into. It must be an ISO 639-1 (2-letter) language code. If the language translation is not supported the original holiday names will be used.

  • categories – Requested holiday categories.

Returns:

A HolidayBase object matching the country.

class holidays.countries.lesotho.LesothoStaticHolidays

Bases: object

special_public_holidays = {2002: (5, 25, 'Africa Day')}