MCPcopy
hub / github.com/vacanza/holidays / _add_easter_monday

Method _add_easter_monday

holidays/groups/christian.py:275–284  ·  view source on GitHub ↗

Add Easter Monday (1 day after Easter Sunday). Easter Monday refers to the day after Easter Sunday in either the Eastern or Western Christian traditions. It is a public holiday in some countries. https://en.wikipedia.org/wiki/Easter_Monday

(self, name, calendar=None)

Source from the content-addressed store, hash-verified

273 return self._add_holiday(name, _timedelta(self._easter_sunday, +60))
274
275 def _add_easter_monday(self, name, calendar=None) -> date:
276 """
277 Add Easter Monday (1 day after Easter Sunday).
278
279 Easter Monday refers to the day after Easter Sunday in either the
280 Eastern or Western Christian traditions. It is a public holiday in
281 some countries.
282 https://en.wikipedia.org/wiki/Easter_Monday
283 """
284 return self._add_holiday(name, _timedelta(self.__get_easter_sunday(calendar), +1))
285
286 def _add_easter_sunday(self, name, calendar=None) -> date:
287 """

Calls 3

__get_easter_sundayMethod · 0.95
_timedeltaFunction · 0.90
_add_holidayMethod · 0.45

Tested by

no test coverage detected