forked from workalendar/workalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de8feb1
commit 90d8efd
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |