holidays.countries.malta
Classes
|
|
|
|
|
https://www.gov.mt/en/About%20Malta/Pages/Public%20Holidays.aspx |
- class holidays.countries.malta.Malta(*args, **kwargs)
Bases:
HolidayBase
,ChristianHolidays
,InternationalHolidays
https://www.gov.mt/en/About%20Malta/Pages/Public%20Holidays.aspx
- [Att 10 tal-1980]
Oldest Maltese Holidays Law available online in full. https://legislation.mt/eli/act/1980/10/mlt
- [A.L. 40 tal-1987]
Additional Holidays added. https://legislation.mt/eli/ln/1987/8/mlt
- [Att 8 tal-1989]
Additional Holidays added. https://legislation.mt/eli/act/1989/8
- [Att 2 tal-2005]
If fall on weekends then not observed in terms of vacation leave. https://legislation.mt/eli/act/2005/2/eng
- [Att 4 tal-2021]
Revert Act II of 2005 changes for vacation leave. https://legislation.mt/eli/cap/252/20210212/mlt
- 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 = 'MT'
The country’s ISO 3166-1 alpha-2 code.
- default_language: str | None = 'mt'
The entity language used by default.
- supported_languages: Tuple[str, ...] = ('en_US', 'mt')
All languages supported by this entity.
- class holidays.countries.malta.MT(*args, **kwargs)
Bases:
Malta
- 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.malta.MLT(*args, **kwargs)
Bases:
Malta
- 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.