o
    Ų"7h>  ć                   @   s6   d dl m Z mZmZ dd Zde fddZdd Zd	S )
é    )ŚdatetimeŚtimezoneŚtzinfoc                 C   s   |   tj”| kS )zmCheck if a datetime exists. Taken from: https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html)Ś
astimezoner   Śutc©Śdt© r	   śr/var/www/epreuve.sigeris.cm/public_html/epreuve/venv/lib/python3.10/site-packages/rest_framework/utils/timezone.pyŚdatetime_exists   s   r   r   c                 C   s$   t | o| j| j d ” |  ” kS )zxCheck whether a datetime is ambiguous. Taken from: https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html)Śfold)r   Śreplacer   Ś	utcoffsetr   r	   r	   r
   Śdatetime_ambiguous   s   ’r   c                 C   s   t | jtrt| sdS dS )zLReturns True if the datetime is not ambiguous or imaginary, False otherwise.TF)Ś
isinstancer   r   r   r	   r	   r
   Śvalid_datetime   s   r   N)r   r   r   r   r   r   r	   r	   r	   r
   Ś<module>   s    	