MCPcopy Index your code

hub / github.com/vacanza/holidays / functions

Functions7,727 in github.com/vacanza/holidays

↓ 10 callersMethod__get_easter_sunday
Get Easter Sunday date.
holidays/groups/christian.py:45
↓ 10 callersMethod_add_africa_day
Add Africa Day (May 25th) Africa Day (formerly African Freedom Day and African Liberation Day) is the annual commemoration o
holidays/groups/international.py:32
↓ 10 callersMethod_add_burmese_calendar_holiday
Add Burmese calendar holiday.
holidays/groups/burmese.py:25
↓ 10 callersMethod_add_chinese_new_years_day_two
Add Chinese New Year's Day Two. https://en.wikipedia.org/wiki/Chinese_New_Year
holidays/groups/chinese.py:137
↓ 10 callersMethod_add_victoria_day
Adds Victoria Day. After Queen Victoria's death in 1901, an act of the Canadian Parliament established Victoria Day as a legal holida
holidays/countries/canada.py:195
↓ 10 callersMethod_get_holiday
(self, holiday: str, year: int)
holidays/calendars/hebrew.py:1600
↓ 10 callersMethodassertLongBreaksEqual
( # noqa: N802 self, instance, expected, *, minimum_break_length=3, require_weekend_overlap=True
tests/test_utils.py:297
↓ 9 callersMethod_add_passover
Add Passover. Passover, also called Pesach, is a major Jewish holiday and one of the Three Pilgrimage Festivals. It celebrat
holidays/groups/hebrew.py:70
↓ 9 callersMethod_add_qingming_festival
Add Qingming Festival (5th solar term of the Chinese lunisolar calendar). The Qingming festival or Ching Ming Festival, also known a
holidays/groups/chinese.py:215
↓ 9 callersMethod_add_saint_james_day
Add Saint James' Day (July 25th). James the Great was one of the Twelve Apostles of Jesus. https://en.wikipedia.org/wiki/Jam
holidays/groups/christian.py:437
↓ 9 callersMethod_add_thaipusam
Add Thaipusam. Thaipusam is a Tamil Hindu festival celebrated on the full moon of the Tamil month of Thai (January/February)
holidays/groups/hindu.py:484
↓ 9 callersMethod_get_holiday
(self, holiday: str, year: int)
holidays/calendars/tibetan.py:1857
↓ 9 callersMethod_get_observed_date
Resolve the observed date for a holiday using the given rule. Looks up the weekday of `dt` in `rule`: * If the offset is `+7` / `-7`
holidays/observed_holiday_base.py:200
↓ 9 callersMethod_populate
(self, year)
tests/groups/test_christian.py:29
↓ 9 callersMethod_test_province_day_helper
( self, province_code: str, holiday_name: str, month: int, day: int, obs_dts: tuple[str, ...] )
tests/countries/test_solomon_islands.py:181
↓ 9 callersMethodlunar_new_year_date
(self, year: int, calendar=None)
holidays/calendars/chinese.py:1391
↓ 9 callersMethodnew_year_date
Return Gregorian date of Persian new year (1 Farvardin) in a given Gregorian year.
holidays/calendars/persian.py:34
↓ 9 callersMethodnow
(cls, tz=None)
tests/test_ical.py:39
↓ 9 callersMethodpersian_to_gregorian
Return Gregorian date of Persian day and month in a given Gregorian year.
holidays/calendars/persian.py:53
↓ 8 callersMethod_add_hebrew_calendar_holiday
Add Hebrew calendar holiday.
holidays/groups/hebrew.py:28
↓ 8 callersMethod_add_saint_georges_day
Add Saint George's Day (April 23th). Saint George's Day is celebrated on 23 April, the traditionally accepted date of the sa
holidays/groups/christian.py:427
↓ 8 callersMethod_get_next_workday
Find the next (or previous) workday from a given date. Advances by `delta` days at a time, skipping dates that are either already hol
holidays/observed_holiday_base.py:173
↓ 8 callersFunction_get_nth_weekday_of_month
Return date of n-th weekday of month for a specific year (e.g. 1st Monday of Apr, 2nd Friday of June, etc). If n is negative the countdow
holidays/calendars/gregorian.py:99
↓ 8 callersMethod_populate
(self, year: int)
tests/test_utils.py:248
↓ 8 callersMethod_populate_ranged_holidays
( self, name: str, start: tuple[int, int], end: tuple[int, int], step: int = 1 )
holidays/financial/ny_stock_exchange.py:76
↓ 8 callersMethod_verify_type
(self, holidays)
tests/common.py:412
↓ 8 callersMethodassertDeprecatedSubdivisions
(self, message)
tests/common.py:431
↓ 8 callersMethodsave_ics
Export the calendar data to a `.ics` file. While [RFC 5545](https://datatracker.ietf.org/doc/html/rfc5545) does not explicitly restri
holidays/ical.py:229
↓ 7 callersMethod_add_chinese_new_years_day_three
Add Chinese New Year's Day Three. https://en.wikipedia.org/wiki/Chinese_New_Year
holidays/groups/chinese.py:147
↓ 7 callersMethod_add_chinese_new_years_eve
Add Chinese New Year's Eve (last day of 12th lunar month). Chinese New Year's Eve is the day before the Chinese New Year. ht
holidays/groups/chinese.py:114
↓ 7 callersMethod_add_diwali
Add Diwali Festival. Diwali (Deepavali, Festival of Lights) is one of the most important festivals in Indian religions. It i
holidays/groups/hindu.py:122
↓ 7 callersMethod_add_diwali_india
(self, name)
holidays/groups/hindu.py:134
↓ 7 callersMethod_add_dragon_boat_festival
Add Dragon Boat Festival (5th day of 5th lunar month). The Dragon Boat Festival is a traditional Chinese holiday which occurs
holidays/groups/chinese.py:239
↓ 7 callersMethod_add_easter_tuesday
Add Easter Tuesday (2 day after Easter Sunday). Easter Tuesday is the third day of Eastertide and is a holiday in some areas.
holidays/groups/christian.py:297
↓ 7 callersMethod_add_eastern_calendar_holiday
Add Eastern (Buddhist, Chinese, Hindu, Islamic, Mongolian) calendar holiday. Adds customizable estimation label to holiday name if h
holidays/groups/eastern.py:24
↓ 7 callersMethod_add_nativity_of_mary_day
Add Nativity Of Mary Day (September 8th). The Nativity of the Blessed Virgin Mary, the Nativity of Mary, the Marymas or the
holidays/groups/christian.py:383
↓ 7 callersMethod_add_ramadan_beginning_day
Add First Day of Ramadan (1st day of 9th month). Ramadan is the ninth month of the Islamic calendar, observed by Muslims wor
holidays/groups/islamic.py:437
↓ 7 callersMethod_add_yom_kippur
Add Yom Kippur. Yom Kippur (Day of Atonement) is the holiest day of the year in Judaism. It occurs annually on the 10th of T
holidays/groups/hebrew.py:138
↓ 7 callersMethod_assert_line_lengths
(self, holiday_name)
tests/test_ical.py:56
↓ 7 callersMethod_assert_special_char_handling
(self, escaped_name, sanitized_name)
tests/test_ical.py:82
↓ 7 callersMethod_check_weekday
Returns True if `weekday` equals to the date's week day. Returns False otherwise.
holidays/holiday_base.py:886
↓ 7 callersMethod_get_start_date
(self, year: int)
holidays/calendars/burmese.py:126
↓ 7 callersMethod_is_saturday
(self, *args)
holidays/holiday_base.py:916
↓ 7 callersMethod_make_special_holiday_list
(self, begin, end, *, days=None)
tests/financial/test_ny_stock_exchange.py:345
↓ 7 callersFunction_normalize_tuple
Normalize tuple. :param data: Either a tuple or a tuple of tuples. :return: An unchanged object for tuple of tuples, e.g., (
holidays/helpers.py:39
↓ 7 callersFunctionlist_supported_countries
Get all supported countries and their subdivisions. Args: include_aliases: Whether to include entity aliases (e.g. UK for GB)
holidays/utils.py:424
↓ 7 callersMethodqingming_date
Return Qingming Festival (5th solar term of the Chinese lunisolar calendar) date. !!! note "Note" This approximation is reliable
holidays/calendars/chinese.py:1397
↓ 7 callersMethodsave
Save snapshot to a JSON file.
scripts/generate_snapshots.py:69
↓ 7 callersMethodwinter_solstice_date
Return Winter Solstice (22nd solar term in Chinese Lunisolar calendar) date. !!! note "Note" This approximation is reliable for 1
holidays/calendars/chinese.py:1417
↓ 6 callersMethod__init__
(self, *args, **kwargs)
tests/test_holiday_base.py:84
↓ 6 callersMethod_add_ash_wednesday
Add Ash Wednesday (46 days before Easter Sunday). A holy day of prayer and fasting. It marks the beginning of Lent. https://
holidays/groups/christian.py:153
↓ 6 callersMethod_add_chinese_birthday_of_buddha
Add Birthday of the Buddha by Chinese lunar calendar (8th day of the 4th lunar month). Birthday of the Buddha is a Buddhist
holidays/groups/chinese.py:89
↓ 6 callersMethod_add_eid_al_adha_day_four
Add Eid al-Adha Day Four (13th day of 12th month). https://en.wikipedia.org/wiki/Eid_al-Adha
holidays/groups/islamic.py:146
↓ 6 callersMethod_add_holi
Add Holi Festival. Holi, known as the Festival of Colors, is a Hindu festival that marks the arrival of spring. It is celebr
holidays/groups/hindu.py:256
↓ 6 callersMethod_add_observed
(self, dt: date, *, before: bool = True, after: bool = True)
tests/test_holiday_base.py:46
↓ 6 callersMethod_add_united_nations_day
Add United Nations Day (Oct 24th) United Nations Day is an annual commemorative day, reflecting the official creation of the
holidays/groups/international.py:219
↓ 6 callersMethod_get_holiday
(self, holiday: str, year: int, calendar=None)
holidays/calendars/chinese.py:1360
↓ 6 callersMethod_is_friday
(self, *args)
holidays/holiday_base.py:913
↓ 6 callersMethodcopy
Return a copy of the object.
holidays/holiday_base.py:1006
↓ 6 callersFunctionjulian_calendar_drift
Return the Julian-Gregorian date drift relative to the 1899-2099 baseline. Args: year: Gregorian year to check. Returns:
holidays/calendars/julian.py:16
↓ 6 callersFunctionlist_supported_financial
Get all supported financial markets and their subdivisions. Args: include_aliases: Whether to include entity aliases (e.g. NY
holidays/utils.py:439
↓ 5 callersMethod__get_christmas_day
Get Christmas Day date.
holidays/groups/christian.py:32
↓ 5 callersMethod__init__
(self, *args, **kwargs)
holidays/countries/south_korea.py:295
↓ 5 callersMethod__verify_calendar
Verify calendar type.
holidays/groups/christian.py:82
↓ 5 callersMethod_add_chhath_puja
Add Chhath Puja. Chhath Puja is a Hindu festival dedicated to the Sun God (Surya). It is observed six days after Diwali in t
holidays/groups/hindu.py:110
↓ 5 callersMethod_add_christmas_day_three
Add Christmas Day 3. A holiday celebrated 2 days after Christmas Day (in some countries). https://en.wikipedia.org/wiki/Chri
holidays/groups/christian.py:244
↓ 5 callersMethod_add_christmas_eve_holiday
(self)
holidays/countries/united_states.py:426
↓ 5 callersMethod_add_eid_al_fitr_eve
Add Eid al-Fitr Eve (last day of 9th month). https://en.wikipedia.org/wiki/Eid_al-Fitr
holidays/groups/islamic.py:199
↓ 5 callersMethod_add_gudi_padwa
Add Gudi Padwa / Ugadi. Gudi Padwa is the traditional New Year festival celebrated in Maharashtra. On the same day, the fest
holidays/groups/hindu.py:186
↓ 5 callersMethod_add_laylat_al_qadr_day
Add Laylat al-Qadr Day (27th day of 9th month). https://en.wikipedia.org/wiki/Laylat_al-Qadr
holidays/groups/islamic.py:333
↓ 5 callersMethod_add_makha_bucha
Add Makha Bucha. Māgha Pūjā (also written as Makha Bousa and Meak Bochea Day) is a Buddhist festival celebrated on the 15th
holidays/groups/thai.py:116
↓ 5 callersMethod_add_mid_autumn_festival
Add Mid Autumn Festival (15th day of the 8th lunar month). The Mid-Autumn Festival, also known as the Moon Festival or Moonc
holidays/groups/chinese.py:263
↓ 5 callersMethod_add_mongolian_calendar_holiday
Add Mongolian calendar holiday. Adds customizable estimation label to holiday name if holiday date is an estimation.
holidays/groups/mongolian.py:28
↓ 5 callersMethod_add_myanmar_new_year
Add Myanmar New Year (Thingyan, Water Festival). Thingyan, also known as the Myanmar New Year, is a festival that usually occurs in m
holidays/groups/burmese.py:120
↓ 5 callersMethod_add_saint_anthonys_day
Add Saint Anthony of Padua's Day (June 13th). Saint Anthony's Day is celebrated on 13 June, the traditionally accepted date
holidays/groups/christian.py:417
↓ 5 callersMethod_add_saint_patricks_day
Add Saint Patrick's Day (March 17th). Saint Patrick's Day is a religious and cultural holiday held on 17 March, the traditio
holidays/groups/christian.py:478
↓ 5 callersMethod_add_sukkot
Add Sukkot. Sukkot, also known as the Feast of Tabernacles or Feast of Booths, is a Torah-commanded holiday celebrated for s
holidays/groups/hebrew.py:124
↓ 5 callersMethod_add_visakha_bucha
Add Visakha Bucha. Vesak (also written as Visakha Bousa Day and Visaka Bochea Day) is a Buddhist festival celebrated on the
holidays/groups/thai.py:188
↓ 5 callersMethod_is_leap_year
Returns True if the year is leap. Returns False otherwise.
holidays/holiday_base.py:803
↓ 5 callersFunction_parse_day_month
(value: str)
scripts/calendar/germany_school_generator.py:394
↓ 5 callersMethod_populate
This is a private method that populates (generates and adds) holidays for a given year. To keep things fast, it assumes that no holidays for
holidays/holiday_base.py:938
↓ 5 callersMethodeid_al_adha_dates
(self, year: int)
holidays/calendars/islamic.py:4236
↓ 5 callersMethodeid_al_fitr_dates
(self, year: int)
holidays/calendars/islamic.py:4239
↓ 5 callersMethodgenerate
(self, dates: Mapping[str, Mapping[int, date | list[date]]])
scripts/calendar/generator.py:43
↓ 5 callersFunctionis_ethiopian_leap_year
Determine if the Ethiopian year that starts in the given Gregorian year is a leap year. Ethiopian leap years follow the Coptic/Julian rule:
holidays/calendars/ethiopian.py:16
↓ 5 callersMethodlunar_to_gre
Return the Gregorian date corresponding to a Chinese lunar month and day in a given Gregorian year.
scripts/calendar/asian_generator.py:297
↓ 5 callersMethodmandaean_to_gregorian
Return Gregorian date of Mandaean day and month of the year that begins in a given Gregorian year. Extra 5 days inserted afte
holidays/calendars/mandaean.py:38
↓ 5 callersMethodvalidate_years
(self)
holidays/generate_ics.py:91
↓ 4 callersMethod__verify_calendar
Verify calendar type.
holidays/calendars/thai.py:290
↓ 4 callersMethod__verify_calendar
Verify calendar type.
holidays/calendars/chinese.py:1350
↓ 4 callersMethod_add_asarnha_bucha
Add Asarnha Bucha. Asalha Pūjā (also written as Asarnha Bucha Day) is a Buddhist festival celebrated on the 15th Waxing Day
holidays/groups/thai.py:30
↓ 4 callersMethod_add_ash_monday
Add Ash Monday (48 days before Easter Sunday). The Clean Monday, also known as Pure Monday, Monday of Lent or Green Monday.
holidays/groups/christian.py:143
↓ 4 callersMethod_add_custom_holiday
(self, name: str, dt: date = date(2024, 1, 1), year: int = 2024)
tests/test_ical.py:31
↓ 4 callersMethod_add_double_ninth_festival
Add Double Ninth Festival (9th day of 9th lunar month). The Double Ninth Festival (Chongyang Festival in Mainland China and
holidays/groups/chinese.py:227
↓ 4 callersMethod_add_dussehra
Add Dussehra Festival. Dussehra (Vijayadashami) is a major Hindu festival that marks the end of Navratri. It is celebrated o
holidays/groups/hindu.py:139
↓ 4 callersMethod_add_europe_day
Add Europe Day (May 9th) Europe Day is a day celebrating "peace and unity in Europe" celebrated on 5 May by the Council of E
holidays/groups/international.py:105
↓ 4 callersMethod_add_govardhan_puja
Add Govardhan Puja. Govardhan Puja, also known as Annakut, is celebrated after Diwali to honor Lord Krishna. It falls on the
holidays/groups/hindu.py:174
↓ 4 callersMethod_add_loy_krathong
Add Loy Krathong. Also known as "Boun That Louang" and "Bon Om Touk". This concides with the 15th Waxing Day (Full Moon) of
holidays/groups/thai.py:100
↓ 4 callersMethod_add_maha_shivaratri
Add Maha Shivaratri. Maha Shivaratri is a Hindu festival dedicated to Lord Shiva. It is celebrated on the 14th night of the
holidays/groups/hindu.py:315
↓ 4 callersMethod_add_makar_sankranti
Add Makar Sankranti. Makar Sankranti is a Hindu festival that marks the transition of the Sun into Capricorn (Makar). It is
holidays/groups/hindu.py:364
← previousnext →101–200 of 7,727, ranked by callers