holidays.countries.palau
Classes
|
|
|
|
|
References: - http://www.paclii.org/pw/legis/consol_act/gpt1262/ # Chapter 7, Holidays. |
Sources: |
- class holidays.countries.palau.Palau(*args, **kwargs)
Bases:
ObservedHolidayBase
,ChristianHolidays
,InternationalHolidays
References: - http://www.paclii.org/pw/legis/consol_act/gpt1262/ # Chapter 7, Holidays. - https://www.palaugov.pw/wp-content/uploads/2017/11/RPPL-No.-10-15-re.-Family-Day-Holiday.pdf - https://www.facebook.com/PalauPresident/posts/195883107230463 # EO336 Memorial Day repealed - https://www.taiwanembassy.org/pal_en/post/792.html # Earliest source for President’s Day
If any of the holidays enumerated in section 701 of this chapter falls on Sunday, the following Monday shall be observed as a holiday. If any of the holidays enumerated in section 701 of this chapter falls on Saturday, the preceding Friday shall be observed as a holiday.
As there’s no record of President’s Day (Jun 1) and Independence Day (Oct 1) being legal holiday before 2017, as seen in RPRL 10-15, they shall be assumed to start in 2018 for our current implementation.
- 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 = 'PW'
The country’s ISO 3166-1 alpha-2 code.
- supported_categories: Tuple[str, ...] = ('armed_forces', 'half_day', 'public')
All holiday categories supported by this entity.
- observed_label = '%s (observed)'
- class holidays.countries.palau.PW(*args, **kwargs)
Bases:
Palau
- 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.palau.PLW(*args, **kwargs)
Bases:
Palau
- 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.palau.PalauStaticHolidays
Bases:
object
- Sources:
- special_armed_forces_holidays = {2020: (11, 11, 'Veterans Day')}
- special_half_day_holidays = {2019: (9, 30, 'Preparation for the 25th Independence Day of the Republic of Palau')}
- special_public_holidays = {2020: (11, 3, 'National Day of Democracy')}