holidays.countries.brunei

Classes

BN(*args, **kwargs)

param years:

BRN(*args, **kwargs)

param years:

Brunei(*args, **kwargs)

A subclass of HolidayBase representing public holidays in Brunei Darussalam.

BruneiIslamicHolidays()

BruneiStaticHolidays()

class holidays.countries.brunei.Brunei(*args, **kwargs)

Bases: ObservedHolidayBase, ChineseCalendarHolidays, ChristianHolidays, InternationalHolidays, IslamicHolidays, StaticHolidays

A subclass of HolidayBase representing public holidays in Brunei Darussalam.

References:

If Public Holiday falls on either Friday or Sunday, in-lieu observance is given out on the following Saturday or Monday.

Limitations:

  • Brunei Darussalam holidays only works from 1984 onwards

  • Islamic holidays

Country created by: PPsyrius

Country maintained by: PPsyrius

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

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

default_language: str | None = 'ms'

The entity language used by default.

estimated_label = '%s (anggaran)'
observed_label = '%s (diperhatikan)'
observed_estimated_label = '%s (diperhatikan, anggaran)'
supported_languages: Tuple[str, ...] = ('en_US', 'ms', 'th')

All languages supported by this entity.

class holidays.countries.brunei.BN(*args, **kwargs)

Bases: Brunei

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.brunei.BRN(*args, **kwargs)

Bases: Brunei

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.brunei.BruneiIslamicHolidays

Bases: _CustomIslamicHolidays

EID_AL_ADHA_DATES_CUSTOM_CALENDAR = {2000: (3, 16), 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, 5), 2015: (9, 24), 2016: (9, 13), 2017: (9, 2), 2018: (8, 22), 2019: (8, 11), 2020: (8, 1), 2021: (7, 20), 2022: (7, 10), 2023: (6, 29)}
EID_AL_FITR_DATES_CUSTOM_CALENDAR = {2000: ((1, 8), (12, 28)), 2001: (12, 17), 2002: (12, 6), 2003: (11, 26), 2004: (11, 14), 2005: (11, 3), 2006: (10, 24), 2007: (10, 13), 2008: (10, 1), 2009: (9, 20), 2010: (9, 10), 2011: (8, 31), 2012: (8, 19), 2013: (8, 8), 2014: (7, 29), 2015: (7, 18), 2016: (7, 7), 2017: (6, 26), 2018: (6, 15), 2019: (6, 5), 2020: (5, 24), 2021: (5, 13), 2022: (5, 3), 2023: (4, 22), 2024: (4, 10)}
HIJRI_NEW_YEAR_DATES_CUSTOM_CALENDAR = {2000: (4, 6), 2001: (3, 26), 2002: (3, 15), 2003: (3, 5), 2004: (2, 22), 2005: (2, 10), 2006: (1, 31), 2007: (1, 20), 2008: ((1, 10), (12, 29)), 2009: (12, 18), 2010: (12, 8), 2011: (11, 27), 2012: (11, 15), 2013: (11, 5), 2014: (10, 25), 2015: (10, 15), 2016: (10, 3), 2017: (9, 22), 2018: (9, 12), 2019: (9, 1), 2020: (8, 20), 2021: (8, 10), 2022: (7, 30), 2023: (7, 19)}
ISRA_AND_MIRAJ_DATES_CUSTOM_CALENDAR = {2000: (10, 26), 2001: (10, 15), 2002: (10, 4), 2003: (9, 24), 2004: (9, 12), 2005: (9, 1), 2006: (8, 22), 2007: (8, 11), 2008: (7, 31), 2009: (7, 20), 2010: (7, 9), 2011: (6, 29), 2012: (6, 17), 2013: (6, 6), 2014: (5, 27), 2015: (5, 16), 2016: (5, 5), 2017: (4, 24), 2018: (4, 14), 2019: (4, 3), 2020: (3, 22), 2021: (3, 11), 2022: (3, 1), 2023: (2, 18)}
MAWLID_DATES_CUSTOM_CALENDAR = {2000: (6, 15), 2001: (6, 4), 2002: (5, 24), 2003: (5, 14), 2004: (5, 2), 2005: (4, 21), 2006: (4, 11), 2007: (3, 31), 2008: (3, 20), 2009: (3, 9), 2010: (2, 26), 2011: (2, 16), 2012: (2, 5), 2013: (1, 24), 2014: (1, 14), 2015: ((1, 3), (12, 24)), 2016: (12, 12), 2017: (12, 1), 2018: (11, 21), 2019: (11, 9), 2020: (10, 29), 2021: (10, 19), 2022: (10, 8), 2023: (9, 28)}
NUZUL_AL_QURAN_DATES_CUSTOM_CALENDAR = {2000: (12, 14), 2001: (12, 3), 2002: (11, 22), 2003: (11, 12), 2004: (11, 1), 2005: (10, 21), 2006: (10, 10), 2007: (9, 29), 2008: (9, 18), 2009: (9, 7), 2010: (8, 27), 2011: (8, 17), 2012: (8, 5), 2013: (7, 25), 2014: (7, 15), 2015: (7, 4), 2016: (6, 23), 2017: (6, 12), 2018: (6, 2), 2019: (5, 23), 2020: (5, 10), 2021: (4, 29), 2022: (4, 19), 2023: (4, 8)}
RAMADAN_BEGINNING_DATES_CUSTOM_CALENDAR = {2000: (11, 28), 2001: (11, 17), 2002: (11, 6), 2003: (10, 27), 2004: (10, 16), 2005: (10, 5), 2006: (9, 24), 2007: (9, 13), 2008: (9, 2), 2009: (8, 22), 2010: (8, 11), 2011: (8, 1), 2012: (7, 20), 2013: (7, 9), 2014: (6, 29), 2015: (6, 18), 2016: (6, 7), 2017: (5, 27), 2018: (5, 16), 2019: (5, 6), 2020: (4, 25), 2021: (4, 13), 2022: (4, 3), 2023: (3, 23)}
class holidays.countries.brunei.BruneiStaticHolidays

Bases: object

special_public_holidays = {2017: (10, 5, 'Jubli Emas Sultan Hassanal Bolkiah')}