holidays.countries.cambodia

Classes

Cambodia(*args, **kwargs)

A subclass of HolidayBase representing public holidays in Cambodia.

CambodiaStaticHolidays()

KH(*args, **kwargs)

param years:

KHM(*args, **kwargs)

param years:

class holidays.countries.cambodia.Cambodia(*args, **kwargs)

Bases: HolidayBase, InternationalHolidays, StaticHolidays, ThaiCalendarHolidays

A subclass of HolidayBase representing public holidays in Cambodia.

References:

Limitations:

  • Cambodian holidays only works from 1993 onwards.

  • Exact Public Holidays as per Cambodia’s Official Gazette are only available from 2015 onwards.

  • Cambodian Lunar Calendar Holidays only work from 1941 (B.E. 2485) onwards until 2057 (B.E. 2601) as we only have Thai year-type data for cross-checking until then.

Country created by: PPsyrius

Country maintained by: PPsyrius

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 = 'KH'

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

default_language: str | None = 'km'

The entity language used by default.

supported_languages: Tuple[str, ...] = ('en_US', 'km', 'th')

All languages supported by this entity.

class holidays.countries.cambodia.KH(*args, **kwargs)

Bases: Cambodia

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.cambodia.KHM(*args, **kwargs)

Bases: Cambodia

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.cambodia.CambodiaStaticHolidays

Bases: object

sangkranta_in_lieu_covid = 'ថ្ងៃឈប់សម្រាកសងជំនួសឲ្យពិធីបុណ្យចូលឆ្នាំថ្មីប្រពៃណីជាតិ'
special_in_lieu_holidays = 'ថ្ងៃឈប់សម្រាកសងជំនួស'
special_public_holidays = {2016: ((5, 2, 'ថ្ងៃឈប់សម្រាកសងជំនួស'), (5, 16, 'ថ្ងៃឈប់សម្រាកសងជំនួស')), 2018: (5, 21, 'ថ្ងៃឈប់សម្រាកសងជំនួស'), 2019: (9, 30, 'ថ្ងៃឈប់សម្រាកសងជំនួស'), 2020: ((5, 11, 'ថ្ងៃឈប់សម្រាកសងជំនួស'), (8, 17, 'ថ្ងៃឈប់សម្រាកសងជំនួសឲ្យពិធីបុណ្យចូលឆ្នាំថ្មីប្រពៃណីជាតិ'), (8, 18, 'ថ្ងៃឈប់សម្រាកសងជំនួសឲ្យពិធីបុណ្យចូលឆ្នាំថ្មីប្រពៃណីជាតិ'), (8, 19, 'ថ្ងៃឈប់សម្រាកសងជំនួសឲ្យពិធីបុណ្យចូលឆ្នាំថ្មីប្រពៃណីជាតិ'), (8, 20, 'ថ្ងៃឈប់សម្រាកសងជំនួសឲ្យពិធីបុណ្យចូលឆ្នាំថ្មីប្រពៃណីជាតិ'), (8, 21, 'ថ្ងៃឈប់សម្រាកសងជំនួសឲ្យពិធីបុណ្យចូលឆ្នាំថ្មីប្រពៃណីជាតិ'))}