holidays.countries.latvia
Classes
|
|
|
|
|
https://en.wikipedia.org/wiki/Public_holidays_in_Latvia https://information.lv/ https://likumi.lv/ta/id/72608-par-svetku-atceres-un-atzimejamam-dienam |
- class holidays.countries.latvia.Latvia(*args, **kwargs)
Bases:
ObservedHolidayBase
,ChristianHolidays
,InternationalHolidays
,StaticHolidays
https://en.wikipedia.org/wiki/Public_holidays_in_Latvia https://information.lv/ https://likumi.lv/ta/id/72608-par-svetku-atceres-un-atzimejamam-dienam
- 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 = 'LV'
The country’s ISO 3166-1 alpha-2 code.
- default_language: str | None = 'lv'
The entity language used by default.
- observed_label = '%s (brīvdiena)'
- supported_languages: Tuple[str, ...] = ('en_US', 'lv', 'uk')
All languages supported by this entity.
- class holidays.countries.latvia.LV(*args, **kwargs)
Bases:
Latvia
- 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.latvia.LVA(*args, **kwargs)
Bases:
Latvia
- 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.latvia.LatviaStaticHolidays
Bases:
object
- song_and_dance_festival_closing_day = 'Vispārējo latviešu Dziesmu un deju svētku noslēguma dienu'
- pope_francis_pastoral_visit_day = 'Viņa Svētības pāvesta Franciska pastorālās vizītes Latvijā diena'
- hockey_team_win_bronze_medal_day = 'Diena, kad Latvijas hokeja komanda ieguva bronzas medaļu 2023. gada Pasaules hokeja čempionātā'
- special_public_holidays = {2018: ((7, 9, 'Vispārējo latviešu Dziesmu un deju svētku noslēguma dienu'), (9, 24, 'Viņa Svētības pāvesta Franciska pastorālās vizītes Latvijā diena')), 2023: ((5, 29, 'Diena, kad Latvijas hokeja komanda ieguva bronzas medaļu 2023. gada Pasaules hokeja čempionātā'), (7, 10, 'Vispārējo latviešu Dziesmu un deju svētku noslēguma dienu'))}