
    h>                     2    S SK J r JrJr  S rS\ 4S jrS rg)    )datetimetimezonetzinfoc                 F    U R                  [        R                  5      U :H  $ )zmCheck if a datetime exists. Taken from: https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html)
astimezoner   utcdts    O/var/www/html/env/lib/python3.13/site-packages/rest_framework/utils/timezone.pydatetime_existsr      s    
 ==&",,    r
   c                     [        U 5      =(       a=    U R                  U R                  (       + S9R                  5       U R                  5       :g  $ )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                 d    [        U R                  [        5      (       a  [        U 5      (       d  gg)zLReturns True if the datetime is not ambiguous or imaginary, False otherwise.TF)
isinstancer   r   r	   s    r   valid_datetimer      s$    "))V$$-?-C-Cr   N)r   r   r   r   r   r    r   r   <module>r      s!    / /-8 r   