holidays.countries.papua_new_guinea

Classes

PG(*args, **kwargs)

param years:

PNG(*args, **kwargs)

param years:

PapuaNewGuinea(*args, **kwargs)

References:

PapuaNewGuineaStaticHolidays()

Starting from 2021 afterwards all state funerals are given special public holidays, though only some are day-off nationwide.

class holidays.countries.papua_new_guinea.PapuaNewGuinea(*args, **kwargs)

Bases: ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays

References:
Checked With:

Should a holiday listed, other than the Christmas Day, fall on a Sunday the next Monday shall, unless the Head of State, acting on advice, declares otherwise, be observed as a public holiday throughout the country.

When Christmas Day falls on a Sunday, the following Tuesday shall also be observed as a public holiday.

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

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

observed_label = '%s (observed)'
class holidays.countries.papua_new_guinea.PG(*args, **kwargs)

Bases: PapuaNewGuinea

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.papua_new_guinea.PNG(*args, **kwargs)

Bases: PapuaNewGuinea

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.papua_new_guinea.PapuaNewGuineaStaticHolidays

Bases: object

Starting from 2021 afterwards all state funerals are given special public holidays, though only some are day-off nationwide.

References:
sir_michael_somare_mourning_day = 'National Day of Mourning for Sir Michael Somare'
sir_michael_somare_remembrance_day = 'Grand Chief Sir Michael Somare Remembrance Day'
special_public_holidays = {2018: (11, 16, "APEC Leaders' Summit Public Holiday"), 2021: ((1, 8, 'State Funeral of Sir Mekere Morauta'), (3, 1, 'National Day of Mourning for Sir Michael Somare'), (3, 12, 'National Day of Mourning for Sir Michael Somare')), 2022: (9, 19, 'State Funeral of Queen Elizabeth II'), 2023: (4, 18, 'State Funeral of Sir Rabbie Namaliu')}
special_public_holidays_observed = {2022: (2, 28, 'Grand Chief Sir Michael Somare Remembrance Day'), 2023: ((2, 24, 'Grand Chief Sir Michael Somare Remembrance Day'), (6, 16, "King's Birthday"), (9, 15, 'Independence Day'))}