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

Method __get_easter_sunday

holidays/groups/christian.py:45–55  ·  view source on GitHub ↗

Get Easter Sunday date.

(self, calendar=None)

Source from the content-addressed store, hash-verified

43 )
44
45 def __get_easter_sunday(self, calendar=None):
46 """
47 Get Easter Sunday date.
48 """
49 calendar = calendar or self.__calendar
50 self.__verify_calendar(calendar)
51
52 return easter(
53 self._year,
54 method=EASTER_WESTERN if self.__is_gregorian_calendar(calendar) else EASTER_ORTHODOX,
55 )
56
57 @staticmethod
58 def __is_ethiopian_calendar(calendar):

Callers 10

_easter_sundayMethod · 0.95
_add_easter_mondayMethod · 0.95
_add_easter_sundayMethod · 0.95
_add_easter_tuesdayMethod · 0.95
_add_good_fridayMethod · 0.95
_add_holy_saturdayMethod · 0.95
_add_holy_thursdayMethod · 0.95
_add_palm_sundayMethod · 0.95
_add_whit_sundayMethod · 0.95

Calls 2

__verify_calendarMethod · 0.95

Tested by

no test coverage detected