AlkantarClanX12
Current Path : /lib/python3.6/site-packages/dateutil/__pycache__/ |
Current File : //lib/python3.6/site-packages/dateutil/__pycache__/easter.cpython-36.pyc |
3 6�cYE � @ s4 d Z ddlZddddgZdZdZd Zefd d�ZdS )zx This module offers a generic easter computing method for any given year, using Western, Orthodox or Julian algorithms. � N�easter� EASTER_JULIAN�EASTER_ORTHODOX�EASTER_WESTERN� � � c C sl d| kodkn s t d��| }|d }d}|dk r�d| d d }||d | d }|d kr�d}|dkr�||d d |d d d }n�|d }||d d| d d d| d d }||d d|d d|d d| d }||d | d | |d d }|| | } d| d | d d d } d| d d }tjt|�t|�t| ��S )a� This method was ported from the work done by GM Arts, on top of the algorithm by Claus Tondering, which was based in part on the algorithm of Ouding (1940), as quoted in "Explanatory Supplement to the Astronomical Almanac", P. Kenneth Seidelmann, editor. 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 These methods are represented by the constants: * ``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 and http://www.tondering.dk/claus/calendar.html r r zinvalid method� r � � � � r � i@ �d � � � � � � � � � � �( � � )� ValueError�datetimeZdate�int)Zyear�method�y�g�e�i�j�c�h�p�d�m� r+ �/usr/lib/python3.6/easter.pyr s( $",0$)�__doc__r �__all__r r r r r+ r+ r+ r, �<module> s