
    Xh!                    x    d Z ddlmZ ddlmZmZmZmZ  ed      Z G d de      Zd
dZ	ddZ
 e       ZddZy	)z2
Timezone utilities

Just UTC-awareness right now
    )annotations)datetime	timedeltatimezonetzinfoc                       e Zd ZdZddZddZy)tzUTCz#tzinfo object for UTC (zero offset)c                    t         S )zCompute utcoffset.ZEROselfds     F/var/www/html/myenv/lib/python3.12/site-packages/jupyter_server/_tz.py	utcoffsetztzUTC.utcoffset           c                    t         S )zCompute dst.r   r   s     r   dstz	tzUTC.dst   r   r   N)r   zdatetime | Nonereturnr   )__name__
__module____qualname____doc__r   r    r   r   r	   r	      s    -r   r	   c                 H    t        j                  t        j                        S )z#Return timezone-aware UTC timestamp)r   nowr   utcr   r   r   utcnowr      s    <<%%r   c                J    t        j                  | t        j                        S )N)r   fromtimestampr   r   )	timestamps    r   utcfromtimestampr#   "   s    !!)X\\::r   c                B    | j                         j                  dd      S )z`Return iso-formatted timestamp

    Like .isoformat(), but uses Z for UTC instead of +00:00
    z+00:00Z)	isoformatreplace)dts    r   r&   r&   )   s    
 <<>!!(C00r   N)r   r   )r"   floatr   r   )r(   r   r   str)r   
__future__r   r   r   r   r   r   r	   r   r#   UTCr&   r   r   r   <module>r-      sD    # : : |	F 	&
; g1r   