holidays.countries.bahamas
Classes
|
|
|
|
|
References: |
- class holidays.countries.bahamas.Bahamas(*args, **kwargs)
Bases:
ObservedHolidayBase
,ChristianHolidays
,InternationalHolidays
,StaticHolidays
- References:
https://en.wikipedia.org/wiki/Public_holidays_in_the_Bahamas
https://laws.bahamas.gov.bs/cms/images/LEGISLATION/PRINCIPAL/1938/1938-0015/PublicHolidaysAct_1.pdf # noqa: E501
https://laws.bahamas.gov.bs/cms/images/LEGISLATION/PRINCIPAL/2013/2013-0040/MajorityRulePublicHolidayAct2013_1.pdf # noqa: E501
https://laws.bahamas.gov.bs/cms/images/LEGISLATION/PRINCIPAL/2013/2013-0009/RandolFawkesLabourDayAct2013_1.pdf # noqa: E501
http://www.tribune242.com/news/2013/oct/12/national-heroes-day-formally-established/
- Checked With:
- 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 = 'BS'
The country’s ISO 3166-1 alpha-2 code.
- observed_label = '%s (observed)'
- class holidays.countries.bahamas.BS(*args, **kwargs)
Bases:
Bahamas
- 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.bahamas.BHS(*args, **kwargs)
Bases:
Bahamas
- 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.bahamas.BahamasStaticHolidays
Bases:
object
- special_public_holidays = {2022: (9, 19, 'State Funeral of Queen Elizabeth II')}
- special_public_holidays_observed = {1979: (12, 31, "New Year's Day"), 1984: (12, 31, "New Year's Day"), 1990: (12, 31, "New Year's Day"), 2001: (12, 31, "New Year's Day"), 2007: (12, 31, "New Year's Day")}