%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/dateutil/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/dateutil/__pycache__/easter.cpython-312.pyc |
� ӝ�`v � �. � d Z ddlZg d�ZdZdZdZefd�Zy)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 �R � d|cxk rdk st d� � t d� �| }|dz }d}|dk r=d|z dz dz }||dz z |z d z }|d k( r�d}|dkD rz||d z z dz |d z dz dz z }nb|d z }||dz z d|z dz dz z d|z z dz dz }||dz d|dz d|dz z z d|z dz z z z z }||dz z |z d z |z |dz z d z }||z |z } d| dz | dz dz z dz z } d| dz dz z }t j t |� 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: `GM Arts: Easter Algorithms <http://www.gmarts.org/index.php?go=415>`_ and `The Calendar FAQ: Easter <https://www.tondering.dk/claus/cal/easter.php>`_ r r zinvalid method� r � � � � r � i@ �d � � � � � � � � � � �( � � )� ValueError�datetime�date�int)�year�method�y�g�e�i�j�c�h�p�d�ms �1/usr/lib/python3/dist-packages/dateutil/easter.pyr r s� � �H ���1���)�*�*� ��)�*�*� �A� �B��A� �A� ��z� ��T�B�Y�"��� ��A��X��\�Q����Q�;��A��4�x���3��J��O�q�#�v��{�Q�&6�6�� �s�F�� ��A��X��1��r��B�� &��A�� -�� 2�b�8�� ��B���a��e�b�1�q�5�k�2�R�!�V�b�L�A�A�B�B�� ��A��X��\�A� �� !�A�q�D� (�A�-�� �A��� �A� �Q��V�q�1�u�r�k� !�R�'�'�A� �Q��V�b�L��A��=�=��Q���Q���Q��0�0� )�__doc__r �__all__r r r r � r0 r/ �<module>r4 s. ��� � J��� ����� '� I1r0