holidays.countries.azerbaijan

Classes

AZ(*args, **kwargs)

param years:

AZE(*args, **kwargs)

param years:

Azerbaijan(*args, **kwargs)

param years:

AzerbaijanIslamicHolidays()

AzerbaijanStaticHolidays()

class holidays.countries.azerbaijan.Azerbaijan(*args, **kwargs)

Bases: ObservedHolidayBase, InternationalHolidays, IslamicHolidays, StaticHolidays

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 = 'AZ'

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

default_language: str | None = 'az'

The entity language used by default.

estimated_label = '%s (təxmini)'
observed_label = '%s (müşahidə olunur)'
observed_estimated_label = '%s (müşahidə olunur, təxmini)'
supported_categories: Tuple[str, ...] = ('public', 'workday')

All holiday categories supported by this entity.

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

All languages supported by this entity.

class holidays.countries.azerbaijan.AZ(*args, **kwargs)

Bases: Azerbaijan

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.azerbaijan.AZE(*args, **kwargs)

Bases: Azerbaijan

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.azerbaijan.AzerbaijanIslamicHolidays

Bases: _CustomIslamicHolidays

EID_AL_ADHA_DATES_CUSTOM_CALENDAR = {2002: (2, 21), 2003: (2, 11), 2004: (2, 1), 2005: (1, 22), 2006: ((1, 10), (12, 31)), 2007: (12, 20), 2008: (12, 8), 2009: (11, 27), 2010: (11, 16), 2011: (11, 6), 2012: (10, 25), 2013: (10, 15), 2014: (10, 4), 2015: (9, 24), 2016: (9, 12), 2017: (9, 1), 2018: (8, 22), 2019: (8, 12), 2020: (7, 31), 2021: (7, 20), 2022: (7, 9), 2023: (6, 28)}
EID_AL_FITR_DATES_CUSTOM_CALENDAR = {2002: (12, 4), 2003: (11, 25), 2004: (11, 14), 2005: (11, 3), 2006: (10, 23), 2007: (10, 12), 2008: (9, 30), 2009: (9, 20), 2010: (9, 9), 2011: (8, 30), 2012: (8, 19), 2013: (8, 8), 2014: (7, 28), 2015: (7, 17), 2016: (7, 6), 2017: (6, 26), 2018: (6, 15), 2019: (6, 5), 2020: (5, 24), 2021: (5, 13), 2022: (5, 2), 2023: (4, 21), 2024: (4, 10)}
class holidays.countries.azerbaijan.AzerbaijanStaticHolidays

Bases: object

eid_al_adha = 'Qurban bayrami'
substituted_date_format = '%d.%m.%Y'
substituted_label = 'İstirahət günü (%s ilə əvəz edilmişdir)'
special_public_holidays = {2011: (8, 29, 8, 27), 2013: ((1, 3, 12, 29, 2012), (1, 4, 12, 30, 2012)), 2014: ((1, 3, 12, 28, 2013), (1, 6, 12, 29, 2013)), 2018: (4, 11, 'Prezidenti seçkiləri'), 2019: (12, 27, 'Bələdiyyə seçkiləri'), 2020: ((3, 27, 3, 29), (5, 27, 5, 30), (1, 3, 12, 28, 2019), (1, 6, 12, 29, 2019)), 2021: ((5, 11, 5, 8), (5, 12, 5, 16), (7, 19, 7, 17)), 2022: ((3, 7, 3, 5), (11, 7, 11, 5)), 2023: ((6, 27, 6, 24), (6, 30, 6, 25), (11, 10, 11, 4))}
special_public_holidays_observed = {2007: (1, 3, 'Qurban bayrami'), 2072: (1, 5, 'Qurban bayrami')}