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

Method _add_good_friday

holidays/groups/christian.py:344–353  ·  view source on GitHub ↗

Add Good Friday (2 days before Easter Sunday). Good Friday is a Christian holiday commemorating the crucifixion of Jesus and his death at Calvary. It is also known as Holy Friday, Great Friday, Great and Holy Friday. https://en.wikipedia.org/wiki/Good_Friday

(self, name, calendar=None)

Source from the content-addressed store, hash-verified

342 )
343
344 def _add_good_friday(self, name, calendar=None) -> date:
345 """
346 Add Good Friday (2 days before Easter Sunday).
347
348 Good Friday is a Christian holiday commemorating the crucifixion of
349 Jesus and his death at Calvary. It is also known as Holy Friday,
350 Great Friday, Great and Holy Friday.
351 https://en.wikipedia.org/wiki/Good_Friday
352 """
353 return self._add_holiday(name, _timedelta(self.__get_easter_sunday(calendar), -2))
354
355 def _add_holy_saturday(self, name, calendar=None) -> date:
356 """

Calls 3

__get_easter_sundayMethod · 0.95
_timedeltaFunction · 0.90
_add_holidayMethod · 0.45

Tested by

no test coverage detected