
    _}dg>                     2    d dl m Z mZmZ d Zde fdZd ZdS )    )datetimetimezonetzinfoc                 H    |                      t          j                  | k    S )zmCheck if a datetime exists. Taken from: https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html)
astimezoner   utcdts    \/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/rest_framework/utils/timezone.pydatetime_existsr      s    
 ==&&",,    r
   c                     t          |           oC|                     | j                                                   |                                 k    S )zxCheck whether a datetime is ambiguous. Taken from: https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html)fold)r   replacer   	utcoffsetr	   s    r   datetime_ambiguousr      sG     2 


BG
$$..00BLLNNBr   c                 \    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	   s    r   valid_datetimer      s0    ")V$$ -?-C-C t5r   N)r   r   r   r   r   r    r   r   <module>r      sf    / / / / / / / / / /- - -8        r   