holidays.countries.bahrain
Classes
|
|
|
|
|
Bahrain holidays. |
- class holidays.countries.bahrain.Bahrain(*args, **kwargs)
Bases:
HolidayBase
,InternationalHolidays
,IslamicHolidays
Bahrain 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).
prov – deprecated use subdiv instead.
state – deprecated 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 = 'BH'
The country’s ISO 3166-1 alpha-2 code.
- default_language: str | None = 'ar'
The entity language used by default.
- estimated_label = '(تقدير) %s'
- supported_languages: Tuple[str, ...] = ('ar', 'en_US')
All languages supported by this entity.
- weekend: Set[int] = {4, 5}
Country weekend days.
- class holidays.countries.bahrain.BH(*args, **kwargs)
Bases:
Bahrain
- 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).
prov – deprecated use subdiv instead.
state – deprecated 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.bahrain.BAH(*args, **kwargs)
Bases:
Bahrain
- 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).
prov – deprecated use subdiv instead.
state – deprecated 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.bahrain.BahrainIslamicHolidays
Bases:
_CustomIslamicHolidays
- ASHURA_DATES_CUSTOM_CALENDAR = {2022: (8, 8)}
- EID_AL_ADHA_CUSTOM_CALENDAR = {2022: (7, 9)}
- EID_AL_FITR_DATES_CUSTOM_CALENDAR = {2022: (5, 2)}
- HIJRI_NEW_YEAR_DATES_CUSTOM_CALENDAR = {2022: (7, 30)}
- MAWLID_DATES_CUSTOM_CALENDAR = {2022: (10, 8)}