holidays.countries.ukraine
Classes
|
|
|
|
|
Ukraine holidays. |
Substituted holidays: |
- class holidays.countries.ukraine.Ukraine(*args, **kwargs)
Bases:
ObservedHolidayBase
,ChristianHolidays
,InternationalHolidays
,StaticHolidays
Ukraine holidays.
- Current holidays list:
- 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 = 'UA'
The country’s ISO 3166-1 alpha-2 code.
- default_language: str | None = 'uk'
The entity language used by default.
- observed_label = '%s (вихідний)'
- supported_languages: Tuple[str, ...] = ('ar', 'en_US', 'uk')
All languages supported by this entity.
- class holidays.countries.ukraine.UA(*args, **kwargs)
Bases:
Ukraine
- 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.ukraine.UKR(*args, **kwargs)
Bases:
Ukraine
- 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.ukraine.UkraineStaticHolidays
Bases:
object
- Substituted holidays:
- Special holidays:
- substituted_date_format = '%d.%m.%Y'
- substituted_label = 'Вихідний день (перенесено з %s)'
- special_public_holidays = {1992: ((1, 6, 1, 4), (4, 27, 5, 16)), 1993: ((1, 8, 1, 10), (8, 23, 8, 21)), 1994: (3, 7, 3, 5), 1995: ((1, 9, 'Вихідний згідно указу Президента'), (5, 8, 5, 6), (8, 25, 8, 27), (11, 6, 11, 4)), 1996: ((5, 3, 5, 5), (5, 10, 5, 12)), 1997: ((1, 2, 12, 28, 1996), (1, 6, 1, 4), (4, 29, 4, 19), (4, 30, 5, 17)), 1999: ((1, 8, 1, 10), (4, 12, 4, 24), (8, 23, 8, 21)), 2000: ((5, 8, 5, 6), (8, 25, 8, 27)), 2001: ((3, 9, 3, 11), (4, 30, 4, 28), (5, 10, 5, 5), (5, 11, 5, 6), (6, 29, 6, 23), (12, 31, 12, 29)), 2002: ((5, 3, 5, 11), (12, 30, 12, 28), (12, 31, 12, 29)), 2003: (1, 6, 1, 4), 2004: ((1, 2, 1, 10), (1, 5, 1, 17), (1, 6, 1, 31), (8, 23, 8, 21)), 2005: ((3, 7, 3, 5), (5, 10, 5, 14), (6, 27, 6, 25)), 2006: ((1, 3, 1, 21), (1, 4, 2, 4), (1, 5, 2, 18), (1, 6, 3, 11), (5, 8, 5, 6), (8, 25, 9, 9)), 2007: ((1, 2, 1, 20), (1, 3, 1, 27), (1, 4, 2, 10), (1, 5, 2, 24), (3, 9, 3, 3), (4, 30, 4, 28), (6, 29, 6, 16), (12, 31, 12, 29)), 2008: ((1, 2, 1, 12), (1, 3, 1, 26), (1, 4, 2, 9), (4, 29, 5, 17), (4, 30, 5, 31)), 2009: ((1, 2, 1, 10), (1, 5, 1, 24), (1, 6, 2, 7)), 2010: ((1, 4, 1, 30), (1, 5, 2, 13), (1, 6, 2, 27), (1, 8, 3, 13), (8, 23, 8, 21)), 2011: ((3, 7, 3, 12), (6, 27, 6, 25)), 2012: ((3, 9, 3, 3), (4, 20, 4, 28), (6, 29, 7, 7), (12, 31, 12, 29)), 2013: ((5, 3, 5, 18), (5, 10, 6, 1)), 2014: ((1, 2, 1, 11), (1, 3, 1, 25), (1, 6, 2, 8)), 2015: ((1, 2, 1, 17), (1, 8, 1, 31), (1, 9, 2, 14)), 2016: ((1, 8, 1, 16), (3, 7, 3, 12), (6, 27, 7, 2)), 2017: ((5, 8, 5, 13), (8, 25, 8, 19)), 2018: ((3, 9, 3, 3), (4, 30, 5, 5), (6, 29, 6, 23), (12, 24, 12, 22), (12, 31, 12, 29)), 2019: ((4, 30, 5, 11), (12, 30, 12, 21), (12, 31, 12, 28)), 2020: (1, 6, 1, 11), 2021: ((1, 8, 1, 16), (8, 23, 8, 28), (10, 15, 10, 23)), 2022: (3, 7, 3, 12)}