annual.functions
Annual date functions visible here are discovered automatically.
Submodules
Functions
|
Calculate the easter date for Western churches. |
|
Calculate the Julian easter date. |
|
Calculate the easter date for Eastern churches. |
Package Contents
- annual.functions.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
Noneif the method does not apply to the given year- Return type:
datetime.date | None
- annual.functions.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
Noneif the method does not apply to the given year- Return type:
datetime.date | None
- annual.functions.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
Noneif the method does not apply to the given year- Return type:
datetime.date | None