holidays.countries.tonga

Classes

TO(*args, **kwargs)

param years:

TON(*args, **kwargs)

param years:

Tonga(*args, **kwargs)

References:

TongaStaticHolidays()

References:

class holidays.countries.tonga.Tonga(*args, **kwargs)

Bases: ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays

References:
Checked With:
1988 Revision Observance Rule:

Provided always that when any of the days specified falls upon a Sunday, the next following Monday shall be a public holiday and that whenever the twenty-sixth day of December falls upon a Monday the day following shall be a public holiday. (Amended by Act 11 of 1970.)

2016 and 2020 Revision Observance Rule:

Provided that when any public holidays specified, except Christmas Day, the day immediately succeeding Christmas Day, New Years Day, Good Friday, Easter Monday, ANZAC Day, Birthday of the reigning Sovereign of Tonga and Birthday of the Heir to the Crown of Tonga, falls upon a Thursday, Friday, Saturday or Sunday, that public holiday shall be celebrated on the next following Monday; and if it falls on a Tuesday or Wednesday, that public holiday shall be celebrated on the Monday before the actual public holiday. (Amended by Act 10 of 2010: May 18, 2010.) “Birthday of the reigning Sovereign of Tonga and Birthday of the Heir to the Crown of Tonga” is add to the exempted list as seen above. (Amended by Act 5 of 2013: Jun 28, 2013.)

Further provided that the Birthday of the reigning Sovereign of Tonga and the Birthday of the Heir to the Crown of Tonga shall be celebrated on the day it falls, unless it falls on a Sunday in which case it would be celebrated on the next following Monday. (Inserted by Act 5 of 2013: Jun 28, 2013.)

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

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

default_language: str | None = 'to'

The entity language used by default.

observed_label = "%s (fakatokanga'i)"
supported_languages: Tuple[str, ...] = ('en_US', 'to')

All languages supported by this entity.

class holidays.countries.tonga.TO(*args, **kwargs)

Bases: Tonga

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.tonga.TON(*args, **kwargs)

Bases: Tonga

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.tonga.TongaStaticHolidays

Bases: object

References:
rugby_special_holidays = "'Aho malolo 'akapulu 'a Tonga"
special_public_holidays = {2017: (11, 29, "'Aho malolo 'akapulu 'a Tonga"), 2019: ((9, 19, "Me'afaka'eiki 'o e Siteiti 'Akilisi Pohiva"), (11, 15, "'Aho malolo 'akapulu 'a Tonga"))}
special_public_holidays_observed = {2021: (12, 27, "'Aho 2 'o e Kilisimasi")}