35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
from ..core import WesternCalendar, FRI
|
|
from ..registry_tools import iso_register
|
|
|
|
|
|
@iso_register('MH')
|
|
class MarshallIslands(WesternCalendar):
|
|
"Marshall Islands"
|
|
FIXED_HOLIDAYS = WesternCalendar.FIXED_HOLIDAYS + (
|
|
(3, 3, "Remembrance Day"),
|
|
(5, 1, "Constitution Day"),
|
|
(11, 17, "Presidents' Day"),
|
|
(12, 31, "New Year's Eve"),
|
|
)
|
|
include_good_friday = True
|
|
|
|
def get_variable_days(self, year):
|
|
days = super().get_variable_days(year)
|
|
days.append((
|
|
MarshallIslands.get_nth_weekday_in_month(year, 7, FRI),
|
|
"Fishermen's Holiday"
|
|
))
|
|
days.append((
|
|
MarshallIslands.get_nth_weekday_in_month(year, 9, FRI),
|
|
"Labour Day"
|
|
))
|
|
days.append((
|
|
MarshallIslands.get_last_weekday_in_month(year, 9, FRI),
|
|
"Manit Day"
|
|
))
|
|
days.append((
|
|
MarshallIslands.get_nth_weekday_in_month(year, 12, FRI),
|
|
"Gospel Day"
|
|
))
|
|
return days
|