-
Notifications
You must be signed in to change notification settings - Fork 219
/
panama.py
31 lines (26 loc) · 853 Bytes
/
panama.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from datetime import timedelta
from ..core import WesternCalendar
from ..registry_tools import iso_register
@iso_register('PA')
class Panama(WesternCalendar):
"Panama"
# Civil holidays
include_labour_day = True
# Christian holidays
include_good_friday = True
include_easter_saturday = True
include_easter_sunday = True
FIXED_HOLIDAYS = WesternCalendar.FIXED_HOLIDAYS + (
(1, 9, "Martyrs' Day"),
(11, 3, "Independence Day"),
(11, 5, "Colon Day"),
(11, 10, "Shout in Villa de los Santos"),
(11, 28, "Independence from Spain"),
(12, 8, "Mothers' Day"),
)
def get_variable_days(self, year):
days = super().get_variable_days(year)
days.append(
(self.get_ash_wednesday(year) - timedelta(days=1), "Carnival")
)
return days