holidays.countries.hongkong
Classes
|
|
|
|
|
https://en.wikipedia.org/wiki/Public_holidays_in_Hong_Kong Holidays for 2007–2023 (government source): https://www.gov.hk/en/about/abouthk/holiday/index.htm |
- class holidays.countries.hongkong.HongKong(*args, **kwargs)
Bases:
ObservedHolidayBase
,ChineseCalendarHolidays
,ChristianHolidays
,InternationalHolidays
,StaticHolidays
https://en.wikipedia.org/wiki/Public_holidays_in_Hong_Kong Holidays for 2007–2023 (government source): https://www.gov.hk/en/about/abouthk/holiday/index.htm
- 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).
prov – deprecated use subdiv instead.
state – deprecated 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 = 'HK'
The country’s ISO 3166-1 alpha-2 code.
- observed_label = 'The day following %s'
- class holidays.countries.hongkong.HK(*args, **kwargs)
Bases:
HongKong
- 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).
prov – deprecated use subdiv instead.
state – deprecated 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.hongkong.HKG(*args, **kwargs)
Bases:
HongKong
- 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).
prov – deprecated use subdiv instead.
state – deprecated 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.hongkong.HongKongStaticHolidays
Bases:
object
- special_public_holidays = {1997: (7, 2, 'Hong Kong Special Administrative Region Establishment Day'), 2015: (9, 3, "The 70th anniversary day of the victory of the Chinese people's war of resistance against Japanese aggression")}