holidays.countries.turkey

Classes

TR(*args, **kwargs)

param years:

TUR(*args, **kwargs)

param years:

Turkey(*args, **kwargs)

References:

TurkeyIslamicHolidays()

TurkeyStaticHolidays()

class holidays.countries.turkey.Turkey(*args, **kwargs)

Bases: HolidayBase, InternationalHolidays, IslamicHolidays, StaticHolidays

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).

  • 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 = 'TR'

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

default_language: str | None = 'tr'

The entity language used by default.

estimated_label = '%s (tahmini)'
supported_categories: Tuple[str, ...] = ('half_day', 'public')

All holiday categories supported by this entity.

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

All languages supported by this entity.

class holidays.countries.turkey.TR(*args, **kwargs)

Bases: Turkey

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.turkey.TUR(*args, **kwargs)

Bases: Turkey

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.turkey.TurkeyIslamicHolidays

Bases: _CustomIslamicHolidays

EID_AL_ADHA_DATES_CUSTOM_CALENDAR = {1936: (3, 4), 1937: (2, 22), 1938: (2, 11), 1939: (1, 31), 1940: (1, 20), 1941: ((1, 8), (12, 29)), 1942: (12, 18), 1943: (12, 8), 1944: (11, 26), 1945: (11, 15), 1946: (11, 4), 1947: (10, 25), 1948: (10, 13), 1949: (10, 3), 1950: (9, 23), 1951: (9, 12), 1952: (8, 31), 1953: (8, 20), 1954: (8, 9), 1955: (7, 30), 1956: (7, 19), 1957: (7, 8), 1958: (6, 28), 1959: (6, 17), 1960: (6, 5), 1961: (5, 25), 1962: (5, 14), 1963: (5, 4), 1964: (4, 23), 1965: (4, 12), 1966: (4, 1), 1967: (3, 21), 1968: (3, 10), 1969: (2, 27), 1970: (2, 17), 1971: (2, 6), 1972: (1, 27), 1973: (1, 15), 1974: ((1, 4), (12, 24)), 1975: (12, 13), 1976: (12, 2), 1977: (11, 22), 1978: (11, 11), 1979: (10, 31), 1980: (10, 19), 1981: (10, 8), 1982: (9, 27), 1983: (9, 17), 1984: (9, 6), 1985: (8, 26), 1986: (8, 16), 1987: (8, 5), 1988: (7, 24), 1989: (7, 13), 1990: (7, 3), 1991: (6, 23), 1992: (6, 11), 1993: (6, 1), 1994: (5, 21), 1995: (5, 10), 1996: (4, 28), 1997: (4, 18), 1998: (4, 7), 1999: (3, 28), 2000: (3, 16), 2001: (3, 5), 2002: (2, 22), 2003: (2, 11), 2004: (2, 1), 2005: (1, 20), 2006: ((1, 10), (12, 31)), 2007: (12, 20), 2008: (12, 8), 2009: (11, 27), 2010: (11, 16), 2011: (11, 6), 2012: (10, 25), 2013: (10, 15), 2014: (10, 4), 2015: (9, 24), 2016: (9, 12), 2017: (9, 1), 2018: (8, 21), 2019: (8, 11), 2020: (7, 31), 2021: (7, 20), 2022: (7, 9), 2023: (6, 28), 2024: (6, 16), 2025: (6, 6), 2026: (5, 27), 2027: (5, 16), 2028: (5, 5), 2029: (4, 24), 2030: (4, 13), 2031: (4, 2), 2032: (3, 22)}
EID_AL_FITR_DATES_CUSTOM_CALENDAR = {1936: (12, 15), 1937: (12, 4), 1938: (11, 23), 1939: (11, 13), 1940: (11, 1), 1941: (10, 22), 1942: (10, 12), 1943: (10, 1), 1944: (9, 19), 1945: (9, 8), 1946: (8, 29), 1947: (8, 18), 1948: (8, 6), 1949: (7, 27), 1950: (7, 16), 1951: (7, 6), 1952: (6, 24), 1953: (6, 13), 1954: (6, 2), 1955: (5, 23), 1956: (5, 12), 1957: (5, 1), 1958: (4, 20), 1959: (4, 9), 1960: (3, 29), 1961: (3, 18), 1962: (3, 8), 1963: (2, 25), 1964: (2, 15), 1965: (2, 3), 1966: (1, 23), 1967: (1, 12), 1968: ((1, 1), (12, 21)), 1969: (12, 11), 1970: (12, 1), 1971: (11, 20), 1972: (11, 8), 1973: (10, 28), 1974: (10, 17), 1975: (10, 6), 1976: (9, 25), 1977: (9, 15), 1978: (9, 4), 1979: (8, 24), 1980: (8, 12), 1981: (8, 1), 1982: (7, 22), 1983: (7, 12), 1984: (6, 30), 1985: (6, 20), 1986: (6, 9), 1987: (5, 29), 1988: (5, 17), 1989: (5, 6), 1990: (4, 26), 1991: (4, 16), 1992: (4, 4), 1993: (3, 24), 1994: (3, 13), 1995: (3, 3), 1996: (2, 20), 1997: (2, 9), 1998: (1, 29), 1999: (1, 19), 2000: ((1, 8), (12, 27)), 2001: (12, 16), 2002: (12, 5), 2003: (11, 25), 2004: (11, 14), 2005: (11, 3), 2006: (10, 23), 2007: (10, 12), 2008: (9, 30), 2009: (9, 20), 2010: (9, 9), 2011: (8, 30), 2012: (8, 19), 2013: (8, 8), 2014: (7, 28), 2015: (7, 17), 2016: (7, 5), 2017: (6, 25), 2018: (6, 15), 2019: (6, 4), 2020: (5, 24), 2021: (5, 13), 2022: (5, 2), 2023: (4, 21), 2024: (4, 10), 2025: (3, 30), 2026: (3, 20), 2027: (3, 9), 2028: (2, 26), 2029: (2, 14), 2030: (2, 4), 2031: (1, 24), 2032: (1, 14)}
class holidays.countries.turkey.TurkeyStaticHolidays

Bases: object

special_public_holidays = {1999: (12, 31, 'Genel tati̇l')}