
    Nwg>                     0    d dl m Z mZmZ d Zde fdZd Zy)    )datetimetimezonetzinfoc                 F    | j                  t        j                        | k(  S )zmCheck if a datetime exists. Taken from: https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html)
astimezoner   utcdts    T/var/www/horilla/myenv/lib/python3.12/site-packages/rest_framework/utils/timezone.pydatetime_existsr      s    
 ==&",,    r
   c                     t        |       xr< | j                  | j                         j                         | j                         k7  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      s>     2 


BGG
$..0BLLNBr   c                 P    t        | j                  t              rt        |       syy)zLReturns True if the datetime is not ambiguous or imaginary, False otherwise.TF)
isinstancer   r   r	   s    r   valid_datetimer      s    "))V$-?-Cr   N)r   r   r   r   r   r    r   r   <module>r      s!    / /-8 r   