reconnect moved files to git repo
This commit is contained in:
@ -0,0 +1,66 @@
|
||||
# holidays
|
||||
# --------
|
||||
# A fast, efficient Python library for generating country, province and state
|
||||
# specific sets of holidays on the fly. It aims to make determining whether a
|
||||
# specific date is a holiday as fast and flexible as possible.
|
||||
#
|
||||
# Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
|
||||
# dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
|
||||
# ryanss <ryanssdev@icloud.com> (c) 2014-2017
|
||||
# Website: https://github.com/vacanza/holidays
|
||||
# License: MIT (see LICENSE file)
|
||||
|
||||
from holidays.calendars.gregorian import DEC
|
||||
from holidays.groups import ChristianHolidays, InternationalHolidays, StaticHolidays
|
||||
from holidays.holiday_base import HolidayBase
|
||||
|
||||
|
||||
class EuropeanCentralBank(HolidayBase, ChristianHolidays, InternationalHolidays):
|
||||
"""European Central Bank holidays.
|
||||
|
||||
References:
|
||||
* <https://en.wikipedia.org/wiki/TARGET2>
|
||||
* <https://web.archive.org/web/20250403115031/https://www.ecb.europa.eu/ecb/contacts/working-hours/html/index.en.html>
|
||||
* <https://web.archive.org/web/20241109145056/https://www.ecb.europa.eu/press/pr/date/1999/html/pr990715_1.en.html>
|
||||
* <https://web.archive.org/web/20241202213944/https://www.ecb.europa.eu/press/pr/date/2000/html/pr001214_4.en.html>
|
||||
"""
|
||||
|
||||
market = "XECB"
|
||||
start_year = 2000
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
ChristianHolidays.__init__(self)
|
||||
InternationalHolidays.__init__(self)
|
||||
StaticHolidays.__init__(self, EuropeanCentralBankStaticHolidays)
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def _populate_public_holidays(self):
|
||||
self._add_new_years_day("New Year's Day")
|
||||
|
||||
self._add_good_friday("Good Friday")
|
||||
|
||||
self._add_easter_monday("Easter Monday")
|
||||
|
||||
self._add_labor_day("Labour Day")
|
||||
|
||||
self._add_christmas_day("Christmas Day")
|
||||
|
||||
self._add_christmas_day_two("Christmas Holiday")
|
||||
|
||||
|
||||
class XECB(EuropeanCentralBank):
|
||||
pass
|
||||
|
||||
|
||||
class ECB(EuropeanCentralBank):
|
||||
pass
|
||||
|
||||
|
||||
class TAR(EuropeanCentralBank):
|
||||
pass
|
||||
|
||||
|
||||
class EuropeanCentralBankStaticHolidays:
|
||||
special_public_holidays = {
|
||||
2000: (DEC, 31, "Additional closing day"),
|
||||
}
|
||||
Reference in New Issue
Block a user