holidays.countries.bosnia_and_herzegovina

Classes

BA(*args, **kwargs)

param years:

BIH(*args, **kwargs)

param years:

BosniaAndHerzegovina(*args, **kwargs)

https://en.wikipedia.org/wiki/Public_holidays_in_Bosnia_and_Herzegovina https://www.paragraf.ba/neradni-dani-fbih.html https://www.paragraf.ba/neradni-dani-republike-srpske.html https://www.paragraf.ba/neradni-dani-brcko.html

BosniaAndHerzegovinaIslamicHolidays()

class holidays.countries.bosnia_and_herzegovina.BosniaAndHerzegovina(*args, **kwargs)

Bases: ObservedHolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays

https://en.wikipedia.org/wiki/Public_holidays_in_Bosnia_and_Herzegovina https://www.paragraf.ba/neradni-dani-fbih.html https://www.paragraf.ba/neradni-dani-republike-srpske.html https://www.paragraf.ba/neradni-dani-brcko.html

Observed holidays rules: - BIH: if first day of New Year’s Day and Labor Day fall on Sunday, observed on Tuesday. - BRC: if holiday fall on Sunday, observed on next working day. - SRP: if second day of New Year’s Day and Labor Day fall on Sunday, observed on Monday.

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

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

default_language: str | None = 'bs'

The entity language used by default.

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

All languages supported by this entity.

observed_label = '%s (preneseno)'
subdivisions: Tuple[str, ...] = ('BIH', 'BRC', 'SRP')

The subdivisions supported for this country (see documentation).

class holidays.countries.bosnia_and_herzegovina.BA(*args, **kwargs)

Bases: BosniaAndHerzegovina

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.bosnia_and_herzegovina.BIH(*args, **kwargs)

Bases: BosniaAndHerzegovina

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.bosnia_and_herzegovina.BosniaAndHerzegovinaIslamicHolidays

Bases: _CustomIslamicHolidays

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