Update datutil-2.8.2

This commit is contained in:
JonnyWong16 2021-10-14 20:43:27 -07:00
parent 439ca8ebb8
commit 3b645cf6c3
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
37 changed files with 16696 additions and 2664 deletions

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
"""
This module offers a generic easter computing method for any given year, using
This module offers a generic Easter computing method for any given year, using
Western, Orthodox or Julian algorithms.
"""
@ -21,31 +21,31 @@ def easter(year, method=EASTER_WESTERN):
quoted in "Explanatory Supplement to the Astronomical
Almanac", P. Kenneth Seidelmann, editor.
This algorithm implements three different easter
This algorithm implements three different Easter
calculation methods:
1 - Original calculation in Julian calendar, valid in
dates after 326 AD
2 - Original method, with date converted to Gregorian
calendar, valid in years 1583 to 4099
3 - Revised method, in Gregorian calendar, valid in
years 1583 to 4099 as well
1. Original calculation in Julian calendar, valid in
dates after 326 AD
2. Original method, with date converted to Gregorian
calendar, valid in years 1583 to 4099
3. Revised method, in Gregorian calendar, valid in
years 1583 to 4099 as well
These methods are represented by the constants:
EASTER_JULIAN = 1
EASTER_ORTHODOX = 2
EASTER_WESTERN = 3
* ``EASTER_JULIAN = 1``
* ``EASTER_ORTHODOX = 2``
* ``EASTER_WESTERN = 3``
The default method is method 3.
More about the algorithm may be found at:
http://users.chariot.net.au/~gmarts/eastalg.htm
`GM Arts: Easter Algorithms <http://www.gmarts.org/index.php?go=415>`_
and
http://www.tondering.dk/claus/calendar.html
`The Calendar FAQ: Easter <https://www.tondering.dk/claus/cal/easter.php>`_
"""