holidays.countries.belarus

Classes

BLR(*args, **kwargs)

param years:

BY(*args, **kwargs)

param years:

Belarus(*args, **kwargs)

Belarus holidays.

BelarusStaticHolidays()

class holidays.countries.belarus.Belarus(*args, **kwargs)

Bases: HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays

Belarus holidays.

References:
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 = 'BY'

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

default_language: str | None = 'be'

The entity language used by default.

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

All languages supported by this entity.

class holidays.countries.belarus.BY(*args, **kwargs)

Bases: Belarus

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.belarus.BLR(*args, **kwargs)

Bases: Belarus

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.belarus.BelarusStaticHolidays

Bases: object

substituted_date_format = '%d.%m.%Y'
substituted_label = 'Выходны (перанесены з %s)'
special_public_holidays = {1998: ((1, 2, 1, 10), (4, 27, 4, 25)), 1999: ((1, 8, 1, 16), (4, 19, 4, 17)), 2000: ((5, 8, 5, 13), (11, 6, 11, 11)), 2001: ((1, 2, 1, 20), (3, 9, 3, 3), (4, 23, 4, 21), (4, 30, 4, 28), (7, 2, 7, 7), (12, 24, 12, 22), (12, 31, 12, 29)), 2002: ((1, 2, 1, 5), (5, 10, 5, 18), (11, 8, 11, 16)), 2003: ((1, 6, 1, 4), (5, 5, 5, 3)), 2004: ((1, 2, 1, 10), (1, 5, 1, 17), (1, 6, 1, 31), (4, 19, 4, 17)), 2005: (3, 7, 3, 12), 2006: ((1, 2, 1, 21), (5, 8, 5, 6), (11, 6, 11, 4)), 2007: ((1, 2, 12, 30, 2006), (3, 9, 3, 17), (4, 16, 4, 14), (4, 30, 5, 5), (7, 2, 7, 7), (12, 24, 12, 22), (12, 31, 12, 29)), 2008: ((1, 2, 1, 12), (5, 5, 5, 3), (7, 4, 6, 28), (12, 26, 12, 20)), 2009: ((1, 2, 1, 10), (4, 27, 4, 25)), 2010: ((1, 8, 1, 23), (4, 12, 4, 17), (5, 10, 5, 15)), 2011: ((3, 7, 3, 12), (5, 2, 5, 14)), 2012: ((3, 9, 3, 11), (4, 23, 4, 28), (7, 2, 6, 30), (12, 24, 12, 22), (12, 31, 12, 29)), 2013: ((1, 2, 1, 5), (5, 10, 5, 18)), 2014: ((1, 2, 1, 4), (1, 6, 1, 11), (4, 30, 5, 3), (7, 4, 7, 12), (12, 26, 12, 20)), 2015: ((1, 2, 1, 10), (4, 20, 4, 25)), 2016: ((1, 8, 1, 16), (3, 7, 3, 5)), 2017: ((1, 2, 1, 21), (4, 24, 4, 29), (5, 8, 5, 6), (11, 6, 11, 4)), 2018: ((1, 2, 1, 20), (3, 9, 3, 3), (4, 16, 4, 14), (4, 30, 4, 28), (7, 2, 7, 7), (12, 24, 12, 22), (12, 31, 12, 29)), 2019: ((5, 6, 5, 4), (5, 8, 5, 11), (11, 8, 11, 16)), 2020: ((1, 6, 1, 4), (4, 27, 4, 4)), 2021: ((1, 8, 1, 16), (5, 10, 5, 15)), 2022: ((3, 7, 3, 12), (5, 2, 5, 14)), 2023: ((4, 24, 4, 29), (5, 8, 5, 13), (11, 6, 11, 11))}