Skip to content

Commit

Permalink
Adding holidays for El Salvador.
Browse files Browse the repository at this point in the history
  • Loading branch information
hersoncruz committed Mar 31, 2022
1 parent de8feb1 commit 90d8efd
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions workalendar/america/el_salvador.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from datetime import timedelta

from ..core import WesternCalendar
from ..registry_tools import iso_register


@iso_register('SV')
class ElSalvador(WesternCalendar):
"El Salvador"
# Civil holidays
include_labour_day = True
# Christian holidays
include_holy_thursday = True
include_good_friday = True
include_easter_saturday = True
include_easter_sunday = True
include_all_saints = True

FIXED_HOLIDAYS = WesternCalendar.FIXED_HOLIDAYS + (
(5, 10, "Mothers' Day"),
(6, 17, "Fathers' Day"),
(8, 6, "Celebrations of San Salvador"),
(9, 15, "Independence Day"),
)

def get_variable_days(self, year):
days = super().get_variable_days(year)
return days

0 comments on commit 90d8efd

Please sign in to comment.