annual.functions.easter_funcs

Easter date clculrion routines.

This module computes the easter date for any given year.

For implementation details see the GM Arts site on easter algorithms.

Functions

easter(→ datetime.date | None)

Calculate the easter date for Western churches.

easter_orthodox(→ datetime.date | None)

Calculate the easter date for Eastern churches.

easter_julian(→ datetime.date | None)

Calculate the Julian easter date.

Module Contents

annual.functions.easter_funcs.easter(year: int) datetime.date | None

Calculate the easter date for Western churches.

This method computes the easter date according to the revised method in the Gregorian calendar. The method is valid for years between 1583 and 4099.

Parameters:

year (int) – the year in the range from 1583 to 4099

Returns:

the easter date for the given year or None if the method does not apply to the given year

Return type:

datetime.date | None

annual.functions.easter_funcs.easter_orthodox(year: int) datetime.date | None

Calculate the easter date for Eastern churches.

This method computes the easter date according to the original Julian method for a Gregorian date. The method is valid for years between 1583 and 4099.

Parameters:

year (int) – the year in the range from 1583 to 4099

Returns:

the easter date for the given year or None if the method does not apply to the given year

Return type:

datetime.date | None

annual.functions.easter_funcs.easter_julian(year: int) datetime.date | None

Calculate the Julian easter date.

This method computes the easter date according to the original Julian method without conversion to Gregorian calendar. The method is valid for years after 326.

Parameters:

year (int) – the year, which must be after 326.

Returns:

the easter date for the given year or None if the method does not apply to the given year

Return type:

datetime.date | None