holidays 0.60__py3-none-any.whl → 0.62__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- holidays/constants.py +3 -0
- holidays/countries/__init__.py +1 -0
- holidays/countries/albania.py +2 -4
- holidays/countries/angola.py +2 -4
- holidays/countries/argentina.py +23 -1
- holidays/countries/armenia.py +1 -3
- holidays/countries/aruba.py +2 -4
- holidays/countries/australia.py +1 -0
- holidays/countries/azerbaijan.py +31 -8
- holidays/countries/bahamas.py +2 -4
- holidays/countries/barbados.py +2 -4
- holidays/countries/belarus.py +2 -4
- holidays/countries/belize.py +2 -4
- holidays/countries/bolivia.py +1 -3
- holidays/countries/botswana.py +1 -3
- holidays/countries/brazil.py +151 -116
- holidays/countries/brunei.py +159 -72
- holidays/countries/bulgaria.py +1 -6
- holidays/countries/burkina_faso.py +3 -5
- holidays/countries/burundi.py +1 -3
- holidays/countries/cambodia.py +13 -4
- holidays/countries/cameroon.py +2 -4
- holidays/countries/canada.py +7 -11
- holidays/countries/chad.py +2 -4
- holidays/countries/chile.py +1 -3
- holidays/countries/china.py +23 -12
- holidays/countries/congo.py +2 -4
- holidays/countries/croatia.py +1 -3
- holidays/countries/cuba.py +2 -4
- holidays/countries/curacao.py +2 -7
- holidays/countries/cyprus.py +1 -9
- holidays/countries/djibouti.py +2 -4
- holidays/countries/dominica.py +2 -4
- holidays/countries/dominican_republic.py +2 -4
- holidays/countries/eswatini.py +1 -4
- holidays/countries/ethiopia.py +1 -3
- holidays/countries/finland.py +6 -3
- holidays/countries/france.py +1 -0
- holidays/countries/gabon.py +2 -4
- holidays/countries/georgia.py +1 -3
- holidays/countries/germany.py +4 -56
- holidays/countries/ghana.py +1 -4
- holidays/countries/guernsey.py +328 -0
- holidays/countries/haiti.py +2 -8
- holidays/countries/hongkong.py +2 -3
- holidays/countries/indonesia.py +1 -3
- holidays/countries/iran.py +1 -3
- holidays/countries/ireland.py +1 -3
- holidays/countries/israel.py +1 -18
- holidays/countries/japan.py +2 -6
- holidays/countries/jersey.py +2 -4
- holidays/countries/kazakhstan.py +2 -4
- holidays/countries/kenya.py +1 -3
- holidays/countries/laos.py +2 -13
- holidays/countries/latvia.py +1 -3
- holidays/countries/lesotho.py +1 -3
- holidays/countries/lithuania.py +1 -3
- holidays/countries/luxembourg.py +1 -1
- holidays/countries/madagascar.py +1 -4
- holidays/countries/malawi.py +1 -4
- holidays/countries/malaysia.py +1 -6
- holidays/countries/malta.py +2 -4
- holidays/countries/moldova.py +2 -4
- holidays/countries/mozambique.py +1 -3
- holidays/countries/namibia.py +1 -3
- holidays/countries/netherlands.py +1 -0
- holidays/countries/new_zealand.py +1 -3
- holidays/countries/nigeria.py +1 -3
- holidays/countries/pakistan.py +1 -3
- holidays/countries/palau.py +5 -7
- holidays/countries/papua_new_guinea.py +2 -4
- holidays/countries/paraguay.py +32 -31
- holidays/countries/philippines.py +1 -3
- holidays/countries/poland.py +1 -3
- holidays/countries/portugal.py +23 -0
- holidays/countries/russia.py +1 -3
- holidays/countries/saint_kitts_and_nevis.py +2 -4
- holidays/countries/seychelles.py +2 -4
- holidays/countries/slovakia.py +2 -4
- holidays/countries/slovenia.py +1 -3
- holidays/countries/south_africa.py +2 -4
- holidays/countries/south_korea.py +1 -6
- holidays/countries/switzerland.py +2 -1
- holidays/countries/taiwan.py +1 -3
- holidays/countries/tanzania.py +2 -8
- holidays/countries/thailand.py +12 -8
- holidays/countries/timor_leste.py +4 -8
- holidays/countries/tonga.py +2 -4
- holidays/countries/turkey.py +2 -7
- holidays/countries/ukraine.py +2 -4
- holidays/countries/united_kingdom.py +2 -8
- holidays/countries/united_states.py +20 -23
- holidays/countries/uruguay.py +2 -7
- holidays/countries/uzbekistan.py +1 -2
- holidays/countries/vanuatu.py +2 -4
- holidays/countries/vatican_city.py +1 -3
- holidays/countries/venezuela.py +1 -0
- holidays/countries/zambia.py +1 -4
- holidays/countries/zimbabwe.py +1 -3
- holidays/financial/__init__.py +1 -0
- holidays/financial/brasil_bolsa_balcao.py +108 -0
- holidays/financial/european_central_bank.py +2 -5
- holidays/financial/ice_futures_europe.py +2 -5
- holidays/financial/ny_stock_exchange.py +20 -21
- holidays/groups/international.py +11 -0
- holidays/helpers.py +4 -4
- holidays/holiday_base.py +10 -4
- holidays/locale/de/LC_MESSAGES/CH.po +1 -1
- holidays/locale/en_US/LC_MESSAGES/BN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/BN.po +29 -18
- holidays/locale/en_US/LC_MESSAGES/BR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/BR.po +263 -0
- holidays/locale/en_US/LC_MESSAGES/BVMF.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/BVMF.po +79 -0
- holidays/locale/en_US/LC_MESSAGES/CH.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CH.po +1 -1
- holidays/locale/en_US/LC_MESSAGES/KH.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/KH.po +7 -3
- holidays/locale/en_US/LC_MESSAGES/PY.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/PY.po +18 -14
- holidays/locale/es/LC_MESSAGES/PY.mo +0 -0
- holidays/locale/es/LC_MESSAGES/PY.po +17 -13
- holidays/locale/fr/LC_MESSAGES/CH.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/CH.po +1 -1
- holidays/locale/it/LC_MESSAGES/CH.mo +0 -0
- holidays/locale/it/LC_MESSAGES/CH.po +1 -1
- holidays/locale/km/LC_MESSAGES/KH.mo +0 -0
- holidays/locale/km/LC_MESSAGES/KH.po +7 -3
- holidays/locale/ms/LC_MESSAGES/BN.mo +0 -0
- holidays/locale/ms/LC_MESSAGES/BN.po +26 -17
- holidays/locale/pt_BR/LC_MESSAGES/BR.mo +0 -0
- holidays/locale/pt_BR/LC_MESSAGES/BR.po +263 -0
- holidays/locale/pt_BR/LC_MESSAGES/BVMF.mo +0 -0
- holidays/locale/pt_BR/LC_MESSAGES/BVMF.po +79 -0
- holidays/locale/th/LC_MESSAGES/BN.mo +0 -0
- holidays/locale/th/LC_MESSAGES/BN.po +28 -17
- holidays/locale/th/LC_MESSAGES/KH.mo +0 -0
- holidays/locale/th/LC_MESSAGES/KH.po +7 -3
- holidays/locale/uk/LC_MESSAGES/BR.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/BR.po +263 -0
- holidays/locale/uk/LC_MESSAGES/BVMF.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/BVMF.po +79 -0
- holidays/locale/uk/LC_MESSAGES/CH.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/CH.po +1 -1
- holidays/locale/uk/LC_MESSAGES/PY.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/PY.po +18 -14
- holidays/observed_holiday_base.py +2 -1
- holidays/registry.py +2 -0
- holidays/utils.py +1 -1
- holidays/version.py +1 -1
- {holidays-0.60.dist-info → holidays-0.62.dist-info}/AUTHORS +1 -0
- {holidays-0.60.dist-info → holidays-0.62.dist-info}/METADATA +20 -7
- {holidays-0.60.dist-info → holidays-0.62.dist-info}/RECORD +156 -142
- {holidays-0.60.dist-info → holidays-0.62.dist-info}/WHEEL +1 -1
- {holidays-0.60.dist-info → holidays-0.62.dist-info}/LICENSE +0 -0
- {holidays-0.60.dist-info → holidays-0.62.dist-info}/top_level.txt +0 -0
holidays/countries/chad.py
CHANGED
|
@@ -32,6 +32,8 @@ class Chad(
|
|
|
32
32
|
|
|
33
33
|
country = "TD"
|
|
34
34
|
observed_label = "%s (observed)"
|
|
35
|
+
# On 11 August 1960, Chad gained independence from France.
|
|
36
|
+
start_year = 1961
|
|
35
37
|
|
|
36
38
|
def __init__(self, *args, **kwargs):
|
|
37
39
|
ChristianHolidays.__init__(self)
|
|
@@ -42,10 +44,6 @@ class Chad(
|
|
|
42
44
|
super().__init__(*args, **kwargs)
|
|
43
45
|
|
|
44
46
|
def _populate_public_holidays(self):
|
|
45
|
-
# On 11 August 1960, Chad gained independence from France.
|
|
46
|
-
if self._year <= 1960:
|
|
47
|
-
return None
|
|
48
|
-
|
|
49
47
|
# New Year's Day.
|
|
50
48
|
self._add_observed(self._add_new_years_day("New Year's Day"))
|
|
51
49
|
|
holidays/countries/chile.py
CHANGED
|
@@ -79,6 +79,7 @@ class Chile(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stati
|
|
|
79
79
|
)
|
|
80
80
|
supported_categories = (BANK, PUBLIC)
|
|
81
81
|
supported_languages = ("en_US", "es", "uk")
|
|
82
|
+
start_year = 1915
|
|
82
83
|
|
|
83
84
|
def __init__(self, *args, **kwargs):
|
|
84
85
|
ChristianHolidays.__init__(self)
|
|
@@ -89,9 +90,6 @@ class Chile(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Stati
|
|
|
89
90
|
super().__init__(*args, **kwargs)
|
|
90
91
|
|
|
91
92
|
def _populate_public_holidays(self):
|
|
92
|
-
if self._year <= 1914:
|
|
93
|
-
return None
|
|
94
|
-
|
|
95
93
|
# New Year's Day.
|
|
96
94
|
self._add_new_years_day(tr("Año Nuevo"))
|
|
97
95
|
if self._year >= 2017:
|
holidays/countries/china.py
CHANGED
|
@@ -23,6 +23,8 @@ class China(ObservedHolidayBase, ChineseCalendarHolidays, InternationalHolidays,
|
|
|
23
23
|
References:
|
|
24
24
|
- https://en.wikipedia.org/wiki/Public_holidays_in_China
|
|
25
25
|
- `Festivals and Public Holidays <https://zh.wikipedia.org/wiki/中华人民共和国节日与公众假期>`_
|
|
26
|
+
- 2024 changes (Order #795) `<https://www.gov.cn/zhengce/content/202411/content_6986380.htm>`_
|
|
27
|
+
- `2025 <https://www.gov.cn/zhengce/content/202411/content_6986382.htm>`_
|
|
26
28
|
- `2024 <https://www.gov.cn/zhengce/content/202310/content_6911527.htm>`_
|
|
27
29
|
- `2023 <https://www.gov.cn/gongbao/content/2023/content_5736714.htm>`_
|
|
28
30
|
- `2022 <https://www.gov.cn/gongbao/content/2021/content_5651728.htm>`_
|
|
@@ -67,6 +69,8 @@ class China(ObservedHolidayBase, ChineseCalendarHolidays, InternationalHolidays,
|
|
|
67
69
|
supported_categories = (PUBLIC, HALF_DAY)
|
|
68
70
|
default_language = "zh_CN"
|
|
69
71
|
supported_languages = ("en_US", "th", "zh_CN", "zh_TW")
|
|
72
|
+
# Proclamation of the People's Republic of China on Oct 1, 1949.
|
|
73
|
+
start_year = 1950
|
|
70
74
|
|
|
71
75
|
def __init__(self, *args, **kwargs):
|
|
72
76
|
ChineseCalendarHolidays.__init__(self)
|
|
@@ -77,10 +81,6 @@ class China(ObservedHolidayBase, ChineseCalendarHolidays, InternationalHolidays,
|
|
|
77
81
|
super().__init__(*args, **kwargs)
|
|
78
82
|
|
|
79
83
|
def _populate_public_holidays(self):
|
|
80
|
-
# Proclamation of the People's Republic of China on Oct 1, 1949.
|
|
81
|
-
if self._year <= 1949:
|
|
82
|
-
return None
|
|
83
|
-
|
|
84
84
|
dts_observed = set()
|
|
85
85
|
|
|
86
86
|
# 元旦 (simp.) / 新年 (trad.)
|
|
@@ -95,29 +95,34 @@ class China(ObservedHolidayBase, ChineseCalendarHolidays, InternationalHolidays,
|
|
|
95
95
|
# Status: In-Use (Statutory).
|
|
96
96
|
# Day 1-3 of Chinese New Year in 1949, 1999, 2007, and 2013 revision.
|
|
97
97
|
# 2007 revision introduced New Year's Eve (农历除夕) instead of
|
|
98
|
-
# New Year's 3rd day; 2013 revision returned it back
|
|
98
|
+
# New Year's 3rd day; 2013 revision returned it back;
|
|
99
|
+
# 2024 revision returned also New Year's Eve.
|
|
99
100
|
|
|
100
101
|
# Spring Festival Golden Weekend
|
|
101
|
-
# Checked with Official Notice from 2001-
|
|
102
|
+
# Checked with Official Notice from 2001-2025.
|
|
102
103
|
# Consecutive Holidays are available from 2000 (1999 rev.).
|
|
103
104
|
|
|
104
105
|
# Chinese New Year (Spring Festival).
|
|
105
106
|
chinese_new_year = tr("春节")
|
|
107
|
+
# Chinese New Year's Eve.
|
|
108
|
+
chinese_new_years_eve = tr("农历除夕")
|
|
106
109
|
dts_observed.add(self._add_chinese_new_years_day(chinese_new_year))
|
|
107
110
|
dts_observed.add(self._add_chinese_new_years_day_two(chinese_new_year))
|
|
108
111
|
if 2008 <= self._year <= 2013:
|
|
109
|
-
|
|
110
|
-
dts_observed.add(self._add_chinese_new_years_eve(tr("农历除夕")))
|
|
112
|
+
dts_observed.add(self._add_chinese_new_years_eve(chinese_new_years_eve))
|
|
111
113
|
else:
|
|
112
114
|
dts_observed.add(self._add_chinese_new_years_day_three(chinese_new_year))
|
|
115
|
+
if self._year >= 2025:
|
|
116
|
+
dts_observed.add(self._add_chinese_new_years_eve(chinese_new_years_eve))
|
|
113
117
|
|
|
114
118
|
# 劳动节
|
|
115
119
|
# Status: In-Use (Statutory).
|
|
116
120
|
# May 1 in 1949, 1999, 2007, and 2013 revision.
|
|
117
121
|
# Additional Holidays (May 2-3) are available from 2000 (1999 rev.) - 2007 (2007 rev.).
|
|
122
|
+
# May 2 returned in 2024 revision.
|
|
118
123
|
|
|
119
124
|
# Labor Day Golden Weekend
|
|
120
|
-
# Checked with Official Notice from 2001-
|
|
125
|
+
# Checked with Official Notice from 2001-2025.
|
|
121
126
|
# Consecutive Holidays are available from 2002, with exception of ????-????.
|
|
122
127
|
|
|
123
128
|
# Labor Day.
|
|
@@ -126,6 +131,8 @@ class China(ObservedHolidayBase, ChineseCalendarHolidays, InternationalHolidays,
|
|
|
126
131
|
if 2000 <= self._year <= 2007:
|
|
127
132
|
dts_observed.add(self._add_labor_day_two(labor_day))
|
|
128
133
|
dts_observed.add(self._add_labor_day_three(labor_day))
|
|
134
|
+
elif self._year >= 2025:
|
|
135
|
+
dts_observed.add(self._add_labor_day_two(labor_day))
|
|
129
136
|
|
|
130
137
|
# 国庆节
|
|
131
138
|
# Status: In-Use (Statutory).
|
|
@@ -177,9 +184,6 @@ class China(ObservedHolidayBase, ChineseCalendarHolidays, InternationalHolidays,
|
|
|
177
184
|
|
|
178
185
|
def _populate_half_day_holidays(self):
|
|
179
186
|
# No in lieus are given for this category.
|
|
180
|
-
# Proclamation of the People's Republic of China on Oct 1, 1949.
|
|
181
|
-
if self._year <= 1949:
|
|
182
|
-
return None
|
|
183
187
|
|
|
184
188
|
# International Women's Day.
|
|
185
189
|
self._add_womens_day(tr("国际妇女节"))
|
|
@@ -436,6 +440,13 @@ class ChinaStaticHolidays:
|
|
|
436
440
|
(OCT, 4, SEP, 29), # National Day
|
|
437
441
|
(OCT, 7, OCT, 12), # National Day
|
|
438
442
|
),
|
|
443
|
+
2025: (
|
|
444
|
+
(FEB, 3, JAN, 26), # Spring Festival
|
|
445
|
+
(FEB, 4, FEB, 8), # Spring Festival
|
|
446
|
+
(MAY, 5, APR, 27), # Labor Day
|
|
447
|
+
(OCT, 7, SEP, 28), # National Day
|
|
448
|
+
(OCT, 8, OCT, 11), # National Day
|
|
449
|
+
),
|
|
439
450
|
}
|
|
440
451
|
|
|
441
452
|
special_public_holidays_observed = {
|
holidays/countries/congo.py
CHANGED
|
@@ -31,6 +31,8 @@ class Congo(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
31
31
|
country = "CG"
|
|
32
32
|
default_language = "fr"
|
|
33
33
|
supported_languages = ("en_US", "fr")
|
|
34
|
+
# Loi N° 2-94 of 1 March 1994.
|
|
35
|
+
start_year = 1994
|
|
34
36
|
|
|
35
37
|
def __init__(self, *args, **kwargs) -> None:
|
|
36
38
|
ChristianHolidays.__init__(self)
|
|
@@ -38,10 +40,6 @@ class Congo(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
38
40
|
super().__init__(*args, **kwargs)
|
|
39
41
|
|
|
40
42
|
def _populate_public_holidays(self):
|
|
41
|
-
# Loi N° 2-94 of 1 March 1994
|
|
42
|
-
if self._year <= 1993:
|
|
43
|
-
return None
|
|
44
|
-
|
|
45
43
|
# New Year's Day.
|
|
46
44
|
self._add_new_years_day(tr("Jour de l'An"))
|
|
47
45
|
|
holidays/countries/croatia.py
CHANGED
|
@@ -27,6 +27,7 @@ class Croatia(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
27
27
|
country = "HR"
|
|
28
28
|
default_language = "hr"
|
|
29
29
|
supported_languages = ("en_US", "hr", "uk")
|
|
30
|
+
start_year = 1992
|
|
30
31
|
|
|
31
32
|
def __init__(self, *args, **kwargs):
|
|
32
33
|
ChristianHolidays.__init__(self)
|
|
@@ -34,9 +35,6 @@ class Croatia(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
34
35
|
super().__init__(*args, **kwargs)
|
|
35
36
|
|
|
36
37
|
def _populate_public_holidays(self):
|
|
37
|
-
if self._year <= 1991:
|
|
38
|
-
return None
|
|
39
|
-
|
|
40
38
|
# New Year's Day.
|
|
41
39
|
self._add_new_years_day(tr("Nova godina"))
|
|
42
40
|
|
holidays/countries/cuba.py
CHANGED
|
@@ -36,6 +36,8 @@ class Cuba(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
36
36
|
# %s (observed).
|
|
37
37
|
observed_label = tr("%s (observado)")
|
|
38
38
|
supported_languages = ("en_US", "es", "uk")
|
|
39
|
+
# This calendar only works from 1959 onwards.
|
|
40
|
+
start_year = 1959
|
|
39
41
|
|
|
40
42
|
def __init__(self, *args, **kwargs):
|
|
41
43
|
ChristianHolidays.__init__(self)
|
|
@@ -44,10 +46,6 @@ class Cuba(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
44
46
|
super().__init__(*args, **kwargs)
|
|
45
47
|
|
|
46
48
|
def _populate_public_holidays(self):
|
|
47
|
-
# This calendar only works from 1959 onwards.
|
|
48
|
-
if self._year <= 1958:
|
|
49
|
-
return None
|
|
50
|
-
|
|
51
49
|
# Liberation Day.
|
|
52
50
|
jan_1 = self._add_holiday_jan_1(tr("Triunfo de la Revolución"))
|
|
53
51
|
if self._year <= 2013:
|
holidays/countries/curacao.py
CHANGED
|
@@ -29,6 +29,8 @@ class Curacao(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
29
29
|
default_language = "pap_CW"
|
|
30
30
|
supported_categories = (HALF_DAY, PUBLIC)
|
|
31
31
|
supported_languages = ("en_US", "nl", "pap_CW", "uk")
|
|
32
|
+
# 1954: Creation of the Netherlands Antilles.
|
|
33
|
+
start_year = 1954
|
|
32
34
|
|
|
33
35
|
def __init__(self, *args, **kwargs):
|
|
34
36
|
ChristianHolidays.__init__(self)
|
|
@@ -36,10 +38,6 @@ class Curacao(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
36
38
|
super().__init__(*args, **kwargs)
|
|
37
39
|
|
|
38
40
|
def _populate_public_holidays(self):
|
|
39
|
-
# 1954: Creation of the Netherlands Antilles.
|
|
40
|
-
if self._year <= 1953:
|
|
41
|
-
return None
|
|
42
|
-
|
|
43
41
|
# Aña Nobo.
|
|
44
42
|
# Status: In-Use.
|
|
45
43
|
|
|
@@ -136,9 +134,6 @@ class Curacao(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
136
134
|
self._add_christmas_day_two(tr("Di dos dia di Pasku di Nasementu"))
|
|
137
135
|
|
|
138
136
|
def _populate_half_day_holidays(self):
|
|
139
|
-
if self._year <= 1953:
|
|
140
|
-
return None
|
|
141
|
-
|
|
142
137
|
# New Year's Eve.
|
|
143
138
|
self._add_new_years_eve(tr("Vispu di Aña Nobo"))
|
|
144
139
|
|
holidays/countries/cyprus.py
CHANGED
|
@@ -31,6 +31,7 @@ class Cyprus(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
31
31
|
default_language = "el"
|
|
32
32
|
supported_categories = (BANK, OPTIONAL, PUBLIC)
|
|
33
33
|
supported_languages = ("el", "en_CY", "en_US", "uk")
|
|
34
|
+
start_year = 1961
|
|
34
35
|
|
|
35
36
|
def __init__(self, *args, **kwargs):
|
|
36
37
|
ChristianHolidays.__init__(self, JULIAN_REVISED_CALENDAR)
|
|
@@ -38,9 +39,6 @@ class Cyprus(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
38
39
|
super().__init__(*args, **kwargs)
|
|
39
40
|
|
|
40
41
|
def _populate_public_holidays(self):
|
|
41
|
-
if self._year <= 1960:
|
|
42
|
-
return None
|
|
43
|
-
|
|
44
42
|
# New Year's Day.
|
|
45
43
|
self._add_new_years_day(tr("Πρωτοχρονιά"))
|
|
46
44
|
|
|
@@ -88,16 +86,10 @@ class Cyprus(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
88
86
|
self._add_christmas_day_two(tr("Επομένη Χριστουγέννων"))
|
|
89
87
|
|
|
90
88
|
def _populate_bank_holidays(self):
|
|
91
|
-
if self._year <= 1960:
|
|
92
|
-
return None
|
|
93
|
-
|
|
94
89
|
# Easter Tuesday.
|
|
95
90
|
self._add_easter_tuesday(tr("Τρίτη της Διακαινησίμου"))
|
|
96
91
|
|
|
97
92
|
def _populate_optional_holidays(self):
|
|
98
|
-
if self._year <= 1960:
|
|
99
|
-
return None
|
|
100
|
-
|
|
101
93
|
# Holy Saturday.
|
|
102
94
|
self._add_holy_saturday(tr("Μεγάλο Σάββατο"))
|
|
103
95
|
|
holidays/countries/djibouti.py
CHANGED
|
@@ -24,6 +24,8 @@ class Djibouti(HolidayBase, ChristianHolidays, IslamicHolidays, InternationalHol
|
|
|
24
24
|
estimated_label = tr("%s (estimé)")
|
|
25
25
|
supported_languages = ("ar", "en_US", "fr")
|
|
26
26
|
weekend = {FRI, SAT}
|
|
27
|
+
# On 27 June 1977, Djibouti gained independence from France.
|
|
28
|
+
start_year = 1978
|
|
27
29
|
|
|
28
30
|
def __init__(self, *args, **kwargs):
|
|
29
31
|
ChristianHolidays.__init__(self)
|
|
@@ -32,10 +34,6 @@ class Djibouti(HolidayBase, ChristianHolidays, IslamicHolidays, InternationalHol
|
|
|
32
34
|
super().__init__(*args, **kwargs)
|
|
33
35
|
|
|
34
36
|
def _populate_public_holidays(self):
|
|
35
|
-
# On 27 June 1977, Djibouti gained independence from France.
|
|
36
|
-
if self._year <= 1977:
|
|
37
|
-
return None
|
|
38
|
-
|
|
39
37
|
# New Year's Day.
|
|
40
38
|
self._add_new_years_day(tr("Nouvel an"))
|
|
41
39
|
|
holidays/countries/dominica.py
CHANGED
|
@@ -39,6 +39,8 @@ class Dominica(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, St
|
|
|
39
39
|
|
|
40
40
|
country = "DM"
|
|
41
41
|
observed_label = "%s (observed)"
|
|
42
|
+
# Public Holidays Act, L.I. 12 of 1990 Amendment.
|
|
43
|
+
start_year = 1990
|
|
42
44
|
|
|
43
45
|
def __init__(self, *args, **kwargs):
|
|
44
46
|
ChristianHolidays.__init__(self)
|
|
@@ -48,10 +50,6 @@ class Dominica(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, St
|
|
|
48
50
|
super().__init__(*args, **kwargs)
|
|
49
51
|
|
|
50
52
|
def _populate_public_holidays(self):
|
|
51
|
-
# Public Holidays Act, L.I. 12 of 1990 Amendment.
|
|
52
|
-
if self._year <= 1989:
|
|
53
|
-
return None
|
|
54
|
-
|
|
55
53
|
# New Year's Day.
|
|
56
54
|
self._add_observed(self._add_new_years_day("New Year's Day"))
|
|
57
55
|
|
|
@@ -30,6 +30,8 @@ class DominicanRepublic(ObservedHolidayBase, ChristianHolidays, InternationalHol
|
|
|
30
30
|
country = "DO"
|
|
31
31
|
default_language = "es"
|
|
32
32
|
supported_languages = ("en_US", "es", "uk")
|
|
33
|
+
# Law No. 139-97 - Holidays Dominican Republic (Jun 27, 1997).
|
|
34
|
+
start_year = 1998
|
|
33
35
|
|
|
34
36
|
def __init__(self, *args, **kwargs):
|
|
35
37
|
ChristianHolidays.__init__(self)
|
|
@@ -38,10 +40,6 @@ class DominicanRepublic(ObservedHolidayBase, ChristianHolidays, InternationalHol
|
|
|
38
40
|
super().__init__(*args, **kwargs)
|
|
39
41
|
|
|
40
42
|
def _populate_public_holidays(self):
|
|
41
|
-
# Law No. 139-97 - Holidays Dominican Republic (Jun 27, 1997).
|
|
42
|
-
if self._year <= 1997:
|
|
43
|
-
return None
|
|
44
|
-
|
|
45
43
|
# New Year's Day.
|
|
46
44
|
self._add_new_years_day(tr("Año Nuevo"))
|
|
47
45
|
|
holidays/countries/eswatini.py
CHANGED
|
@@ -25,6 +25,7 @@ class Eswatini(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, St
|
|
|
25
25
|
|
|
26
26
|
country = "SZ"
|
|
27
27
|
observed_label = "%s (observed)"
|
|
28
|
+
start_year = 1939
|
|
28
29
|
|
|
29
30
|
def __init__(self, *args, **kwargs):
|
|
30
31
|
ChristianHolidays.__init__(self)
|
|
@@ -35,10 +36,6 @@ class Eswatini(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, St
|
|
|
35
36
|
super().__init__(*args, **kwargs)
|
|
36
37
|
|
|
37
38
|
def _populate_public_holidays(self):
|
|
38
|
-
# Observed since 1939
|
|
39
|
-
if self._year <= 1938:
|
|
40
|
-
return None
|
|
41
|
-
|
|
42
39
|
self._add_observed(self._add_new_years_day("New Year's Day"))
|
|
43
40
|
|
|
44
41
|
self._add_good_friday("Good Friday")
|
holidays/countries/ethiopia.py
CHANGED
|
@@ -31,6 +31,7 @@ class Ethiopia(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHol
|
|
|
31
31
|
# %s (estimated).
|
|
32
32
|
estimated_label = tr("%s (ግምት)")
|
|
33
33
|
supported_languages = ("am", "ar", "en_US")
|
|
34
|
+
start_year = 1898
|
|
34
35
|
|
|
35
36
|
def _is_leap_year(self):
|
|
36
37
|
"""
|
|
@@ -49,9 +50,6 @@ class Ethiopia(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHol
|
|
|
49
50
|
super().__init__(*args, **kwargs)
|
|
50
51
|
|
|
51
52
|
def _populate_public_holidays(self):
|
|
52
|
-
if self._year <= 1897:
|
|
53
|
-
return None
|
|
54
|
-
|
|
55
53
|
# Christmas Day.
|
|
56
54
|
self._add_christmas_day(tr("ገና"))
|
|
57
55
|
|
holidays/countries/finland.py
CHANGED
|
@@ -28,12 +28,14 @@ class Finland(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
28
28
|
- https://en.wikipedia.org/wiki/Flag_flying_days_in_Finland#Customary_flag_days
|
|
29
29
|
- https://intermin.fi/en/flag-and-arms/flag-flying-days
|
|
30
30
|
- https://intermin.fi/en/flag-and-arms/flag-days/2024
|
|
31
|
+
- https://en.wikipedia.org/wiki/Independence_Day_(Finland)
|
|
31
32
|
"""
|
|
32
33
|
|
|
33
34
|
country = "FI"
|
|
34
35
|
default_language = "fi"
|
|
35
36
|
supported_languages = ("en_US", "fi", "sv_FI", "uk")
|
|
36
37
|
supported_categories = (PUBLIC, UNOFFICIAL)
|
|
38
|
+
start_year = 1853
|
|
37
39
|
|
|
38
40
|
def __init__(self, *args, **kwargs):
|
|
39
41
|
ChristianHolidays.__init__(self)
|
|
@@ -90,8 +92,9 @@ class Finland(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
90
92
|
else:
|
|
91
93
|
self._add_holiday_nov_1(name)
|
|
92
94
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
if self._year >= 1917:
|
|
96
|
+
# Independence Day.
|
|
97
|
+
self._add_holiday_dec_6(tr("Itsenäisyyspäivä"))
|
|
95
98
|
|
|
96
99
|
# Christmas Eve.
|
|
97
100
|
self._add_christmas_eve(tr("Jouluaatto"))
|
|
@@ -125,7 +128,7 @@ class Finland(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
125
128
|
|
|
126
129
|
if self._year >= 2019:
|
|
127
130
|
# Europe Day
|
|
128
|
-
self.
|
|
131
|
+
self._add_europe_day(tr("Eurooppa-päivä"))
|
|
129
132
|
|
|
130
133
|
if self._year >= 1918:
|
|
131
134
|
# Mothers' Day
|
holidays/countries/france.py
CHANGED
holidays/countries/gabon.py
CHANGED
|
@@ -26,6 +26,8 @@ class Gabon(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolida
|
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
28
|
country = "GA"
|
|
29
|
+
# On 17 August 1960, Gabon gained independence from France.
|
|
30
|
+
start_year = 1961
|
|
29
31
|
|
|
30
32
|
def __init__(self, *args, **kwargs) -> None:
|
|
31
33
|
ChristianHolidays.__init__(self)
|
|
@@ -34,10 +36,6 @@ class Gabon(HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolida
|
|
|
34
36
|
super().__init__(*args, **kwargs)
|
|
35
37
|
|
|
36
38
|
def _populate_public_holidays(self):
|
|
37
|
-
# On 17 August 1960, Gabon gained independence from France.
|
|
38
|
-
if self._year <= 1960:
|
|
39
|
-
return None
|
|
40
|
-
|
|
41
39
|
# New Year's Day.
|
|
42
40
|
self._add_new_years_day("New Year's Day")
|
|
43
41
|
|
holidays/countries/georgia.py
CHANGED
|
@@ -32,6 +32,7 @@ class Georgia(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
32
32
|
supported_categories = (GOVERNMENT, PUBLIC)
|
|
33
33
|
default_language = "ka"
|
|
34
34
|
supported_languages = ("en_US", "ka", "uk")
|
|
35
|
+
start_year = 1991
|
|
35
36
|
|
|
36
37
|
def __init__(self, *args, **kwargs):
|
|
37
38
|
ChristianHolidays.__init__(self, JULIAN_CALENDAR)
|
|
@@ -40,9 +41,6 @@ class Georgia(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
|
40
41
|
super().__init__(*args, **kwargs)
|
|
41
42
|
|
|
42
43
|
def _populate_public_holidays(self):
|
|
43
|
-
if self._year <= 1990:
|
|
44
|
-
return None
|
|
45
|
-
|
|
46
44
|
# New Year's Day.
|
|
47
45
|
name = tr("ახალი წელი")
|
|
48
46
|
self._add_new_years_day(name)
|
holidays/countries/germany.py
CHANGED
|
@@ -95,6 +95,7 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
|
|
|
95
95
|
"Thüringen": "TH",
|
|
96
96
|
}
|
|
97
97
|
_deprecated_subdivisions = ("BYP",)
|
|
98
|
+
start_year = 1990
|
|
98
99
|
|
|
99
100
|
def __init__(self, *args, **kwargs) -> None:
|
|
100
101
|
ChristianHolidays.__init__(self)
|
|
@@ -103,9 +104,6 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
|
|
|
103
104
|
super().__init__(*args, **kwargs)
|
|
104
105
|
|
|
105
106
|
def _populate_public_holidays(self):
|
|
106
|
-
if self._year <= 1989:
|
|
107
|
-
return None
|
|
108
|
-
|
|
109
107
|
if self._year >= 1991:
|
|
110
108
|
# New Year's Day.
|
|
111
109
|
self._add_new_years_day(tr("Neujahr"))
|
|
@@ -142,9 +140,6 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
|
|
|
142
140
|
self._populate_subdiv_by_public_holidays()
|
|
143
141
|
|
|
144
142
|
def _populate_subdiv_bb_public_holidays(self):
|
|
145
|
-
if self._year <= 1989:
|
|
146
|
-
return None
|
|
147
|
-
|
|
148
143
|
if self._year >= 1991:
|
|
149
144
|
# Easter Sunday.
|
|
150
145
|
self._add_easter_sunday(tr("Ostersonntag"))
|
|
@@ -156,17 +151,11 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
|
|
|
156
151
|
self._add_holiday_oct_31(tr("Reformationstag"))
|
|
157
152
|
|
|
158
153
|
def _populate_subdiv_be_public_holidays(self):
|
|
159
|
-
if self._year <= 1989:
|
|
160
|
-
return None
|
|
161
|
-
|
|
162
154
|
if self._year >= 2019:
|
|
163
155
|
# International Women's Day.
|
|
164
156
|
self._add_womens_day(tr("Internationaler Frauentag"))
|
|
165
157
|
|
|
166
158
|
def _populate_subdiv_bw_public_holidays(self):
|
|
167
|
-
if self._year <= 1989:
|
|
168
|
-
return None
|
|
169
|
-
|
|
170
159
|
if self._year >= 1991:
|
|
171
160
|
# Epiphany.
|
|
172
161
|
self._add_epiphany_day(tr("Heilige Drei Könige"))
|
|
@@ -178,9 +167,6 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
|
|
|
178
167
|
self._add_all_saints_day(tr("Allerheiligen"))
|
|
179
168
|
|
|
180
169
|
def _populate_subdiv_by_public_holidays(self):
|
|
181
|
-
if self._year <= 1989:
|
|
182
|
-
return None
|
|
183
|
-
|
|
184
170
|
if self._year >= 1991:
|
|
185
171
|
self._add_epiphany_day(tr("Heilige Drei Könige"))
|
|
186
172
|
self._add_corpus_christi_day(tr("Fronleichnam"))
|
|
@@ -188,78 +174,49 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
|
|
|
188
174
|
self._add_all_saints_day(tr("Allerheiligen"))
|
|
189
175
|
|
|
190
176
|
def _populate_subdiv_by_catholic_holidays(self):
|
|
191
|
-
if self._year
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
# Assumption Day.
|
|
195
|
-
self._add_assumption_of_mary_day(tr("Mariä Himmelfahrt"))
|
|
177
|
+
if self._year >= 1991:
|
|
178
|
+
# Assumption Day.
|
|
179
|
+
self._add_assumption_of_mary_day(tr("Mariä Himmelfahrt"))
|
|
196
180
|
|
|
197
181
|
def _populate_subdiv_hb_public_holidays(self):
|
|
198
|
-
if self._year <= 1989:
|
|
199
|
-
return None
|
|
200
|
-
|
|
201
182
|
if self._year >= 2018:
|
|
202
183
|
self._add_holiday_oct_31(tr("Reformationstag"))
|
|
203
184
|
|
|
204
185
|
def _populate_subdiv_he_public_holidays(self):
|
|
205
|
-
if self._year <= 1989:
|
|
206
|
-
return None
|
|
207
|
-
|
|
208
186
|
if self._year >= 1991:
|
|
209
187
|
self._add_corpus_christi_day(tr("Fronleichnam"))
|
|
210
188
|
|
|
211
189
|
def _populate_subdiv_hh_public_holidays(self):
|
|
212
|
-
if self._year <= 1989:
|
|
213
|
-
return None
|
|
214
|
-
|
|
215
190
|
if self._year >= 2018:
|
|
216
191
|
self._add_holiday_oct_31(tr("Reformationstag"))
|
|
217
192
|
|
|
218
193
|
def _populate_subdiv_mv_public_holidays(self):
|
|
219
|
-
if self._year <= 1989:
|
|
220
|
-
return None
|
|
221
|
-
|
|
222
194
|
if self._year >= 2023:
|
|
223
195
|
self._add_womens_day(tr("Internationaler Frauentag"))
|
|
224
196
|
|
|
225
197
|
self._add_holiday_oct_31(tr("Reformationstag"))
|
|
226
198
|
|
|
227
199
|
def _populate_subdiv_ni_public_holidays(self):
|
|
228
|
-
if self._year <= 1989:
|
|
229
|
-
return None
|
|
230
|
-
|
|
231
200
|
if self._year >= 2018:
|
|
232
201
|
self._add_holiday_oct_31(tr("Reformationstag"))
|
|
233
202
|
|
|
234
203
|
def _populate_subdiv_nw_public_holidays(self):
|
|
235
|
-
if self._year <= 1989:
|
|
236
|
-
return None
|
|
237
|
-
|
|
238
204
|
if self._year >= 1991:
|
|
239
205
|
self._add_corpus_christi_day(tr("Fronleichnam"))
|
|
240
206
|
|
|
241
207
|
self._add_all_saints_day(tr("Allerheiligen"))
|
|
242
208
|
|
|
243
209
|
def _populate_subdiv_rp_public_holidays(self):
|
|
244
|
-
if self._year <= 1989:
|
|
245
|
-
return None
|
|
246
|
-
|
|
247
210
|
if self._year >= 1991:
|
|
248
211
|
self._add_corpus_christi_day(tr("Fronleichnam"))
|
|
249
212
|
|
|
250
213
|
self._add_all_saints_day(tr("Allerheiligen"))
|
|
251
214
|
|
|
252
215
|
def _populate_subdiv_sh_public_holidays(self):
|
|
253
|
-
if self._year <= 1989:
|
|
254
|
-
return None
|
|
255
|
-
|
|
256
216
|
if self._year >= 2018:
|
|
257
217
|
self._add_holiday_oct_31(tr("Reformationstag"))
|
|
258
218
|
|
|
259
219
|
def _populate_subdiv_sl_public_holidays(self):
|
|
260
|
-
if self._year <= 1989:
|
|
261
|
-
return None
|
|
262
|
-
|
|
263
220
|
if self._year >= 1991:
|
|
264
221
|
self._add_corpus_christi_day(tr("Fronleichnam"))
|
|
265
222
|
self._add_assumption_of_mary_day(tr("Mariä Himmelfahrt"))
|
|
@@ -267,27 +224,18 @@ class Germany(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolid
|
|
|
267
224
|
self._add_all_saints_day(tr("Allerheiligen"))
|
|
268
225
|
|
|
269
226
|
def _populate_subdiv_sn_public_holidays(self):
|
|
270
|
-
if self._year <= 1989:
|
|
271
|
-
return None
|
|
272
|
-
|
|
273
227
|
self._add_holiday_oct_31(tr("Reformationstag"))
|
|
274
228
|
|
|
275
229
|
if self._year >= 1995:
|
|
276
230
|
self._add_holiday_1st_wed_before_nov_22(tr("Buß- und Bettag"))
|
|
277
231
|
|
|
278
232
|
def _populate_subdiv_st_public_holidays(self):
|
|
279
|
-
if self._year <= 1989:
|
|
280
|
-
return None
|
|
281
|
-
|
|
282
233
|
if self._year >= 1991:
|
|
283
234
|
self._add_epiphany_day(tr("Heilige Drei Könige"))
|
|
284
235
|
|
|
285
236
|
self._add_holiday_oct_31(tr("Reformationstag"))
|
|
286
237
|
|
|
287
238
|
def _populate_subdiv_th_public_holidays(self):
|
|
288
|
-
if self._year <= 1989:
|
|
289
|
-
return None
|
|
290
|
-
|
|
291
239
|
if self._year >= 2019:
|
|
292
240
|
# World Children's Day.
|
|
293
241
|
self._add_holiday_sep_20(tr("Weltkindertag"))
|
holidays/countries/ghana.py
CHANGED
|
@@ -28,6 +28,7 @@ class Ghana(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Islam
|
|
|
28
28
|
estimated_label = "%s (estimated)"
|
|
29
29
|
observed_label = "%s (observed)"
|
|
30
30
|
observed_estimated_label = "%s (observed, estimated)"
|
|
31
|
+
start_year = 1957
|
|
31
32
|
|
|
32
33
|
def __init__(self, *args, **kwargs):
|
|
33
34
|
ChristianHolidays.__init__(self)
|
|
@@ -37,10 +38,6 @@ class Ghana(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, Islam
|
|
|
37
38
|
super().__init__(*args, **kwargs)
|
|
38
39
|
|
|
39
40
|
def _populate_public_holidays(self):
|
|
40
|
-
# Holidays observed since 1957
|
|
41
|
-
if self._year <= 1956:
|
|
42
|
-
return None
|
|
43
|
-
|
|
44
41
|
# New Year's Day
|
|
45
42
|
self._add_observed(self._add_new_years_day("New Year's Day"))
|
|
46
43
|
|