holidays.countries.hungary

Classes

HU(*args, **kwargs)

param years:

HUN(*args, **kwargs)

param years:

Hungary(*args, **kwargs)

https://en.wikipedia.org/wiki/Public_holidays_in_Hungary

HungaryStaticHolidays()

class holidays.countries.hungary.Hungary(*args, **kwargs)

Bases: HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays

https://en.wikipedia.org/wiki/Public_holidays_in_Hungary

Codification dates:
Substituted holidays official sources:
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 = 'HU'

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

default_language: str | None = 'hu'

The entity language used by default.

supported_languages: Tuple[str, ...] = ('en_US', 'hu', 'uk')

All languages supported by this entity.

class holidays.countries.hungary.HU(*args, **kwargs)

Bases: Hungary

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.hungary.HUN(*args, **kwargs)

Bases: Hungary

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.hungary.HungaryStaticHolidays

Bases: object

substituted_date_format = '%Y. %m. %d.'
substituted_label = 'Pihenőnap (%s-től helyettesítve)'
special_public_holidays = {2010: (12, 24, 12, 11), 2011: ((3, 14, 3, 19), (10, 31, 11, 5)), 2012: ((3, 16, 3, 24), (4, 30, 4, 21), (10, 22, 10, 27), (11, 2, 11, 10), (12, 24, 12, 15), (12, 31, 12, 1)), 2013: ((8, 19, 8, 24), (12, 24, 12, 7), (12, 27, 12, 21)), 2014: ((5, 2, 5, 10), (10, 24, 10, 18), (12, 24, 12, 13)), 2015: ((1, 2, 1, 10), (8, 21, 8, 8), (12, 24, 12, 12)), 2016: ((3, 14, 3, 5), (10, 31, 10, 15)), 2018: ((3, 16, 3, 10), (4, 30, 4, 21), (10, 22, 10, 13), (11, 2, 11, 10), (12, 24, 12, 1), (12, 31, 12, 15)), 2019: ((8, 19, 8, 10), (12, 24, 12, 7), (12, 27, 12, 14)), 2020: ((8, 21, 8, 29), (12, 24, 12, 12)), 2021: (12, 24, 12, 11), 2022: ((3, 14, 3, 26), (10, 31, 10, 15)), 2024: ((8, 19, 8, 3), (12, 24, 12, 7), (12, 27, 12, 14))}