holidays.countries.chile
Classes
|
|
|
|
|
References: - https://www.feriados.cl - http://www.feriadoschilenos.cl/ (excellent history) - https://es.wikipedia.org/wiki/Anexo:D%C3%ADas_feriados_en_Chile - Law 2.977 (established official Chile holidays in its current form) - Law 20.983 (Day after New Year's Day, if it's a Sunday) - Law 19.668 (floating Monday holiday) - Law 19.668 (Corpus Christi) - Law 2.200, (Labour Day) - Law 18.018 (Labour Day renamed) - Law 16.840, Law 18.432 (Saint Peter and Saint Paul) - Law 20.148 (Day of Virgin of Carmen) - Law 18.026 (Day of National Liberation) - Law 19.588, Law 19.793 (Day of National Unity) - Law 20.983 (National Holiday Friday preceding Independence Day) - Law 20.215 (National Holiday Monday preceding Independence Day) - Law 20.215 (National Holiday Friday following Army Day) - Decree-law 636, Law 8.223 - Law 3.810 (Columbus Day) - Law 20.299 (National Day of the Evangelical and Protestant Churches) - Law 20.663 (Región de Arica y Parinacota) - Law 20.678 (Región de Ñuble) |
- class holidays.countries.chile.Chile(*args, **kwargs)
Bases:
ObservedHolidayBase
,ChristianHolidays
,InternationalHolidays
,StaticHolidays
References: - https://www.feriados.cl - http://www.feriadoschilenos.cl/ (excellent history) - https://es.wikipedia.org/wiki/Anexo:D%C3%ADas_feriados_en_Chile - Law 2.977 (established official Chile holidays in its current form) - Law 20.983 (Day after New Year’s Day, if it’s a Sunday) - Law 19.668 (floating Monday holiday) - Law 19.668 (Corpus Christi) - Law 2.200, (Labour Day) - Law 18.018 (Labour Day renamed) - Law 16.840, Law 18.432 (Saint Peter and Saint Paul) - Law 20.148 (Day of Virgin of Carmen) - Law 18.026 (Day of National Liberation) - Law 19.588, Law 19.793 (Day of National Unity) - Law 20.983 (National Holiday Friday preceding Independence Day) - Law 20.215 (National Holiday Monday preceding Independence Day) - Law 20.215 (National Holiday Friday following Army Day) - Decree-law 636, Law 8.223 - Law 3.810 (Columbus Day) - Law 20.299 (National Day of the Evangelical and Protestant Churches) - Law 20.663 (Región de Arica y Parinacota) - Law 20.678 (Región de Ñuble)
- 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 = 'CL'
The country’s ISO 3166-1 alpha-2 code.
- default_language: str | None = 'es'
The entity language used by default.
- subdivisions: Tuple[str, ...] = ('AI', 'AN', 'AP', 'AR', 'AT', 'BI', 'CO', 'LI', 'LL', 'LR', 'MA', 'ML', 'NB', 'RM', 'TA', 'VS')
The subdivisions supported for this country (see documentation).
- supported_languages: Tuple[str, ...] = ('en_US', 'es', 'uk')
All languages supported by this entity.
- class holidays.countries.chile.CL(*args, **kwargs)
Bases:
Chile
- 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.chile.CHL(*args, **kwargs)
Bases:
Chile
- 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.