
    |tf                         d Z ddlZddlmZmZmZ g dZ ed      Zd Zd Z G d de      Z	 e	       Z
d	 Z eej                        Z eej                        Zy)
zT
Timezone utilities

Just UTC-awareness right now

Deprecated since IPython 8.19.0.
    N)tzinfo	timedeltadatetime)tzUTC	utc_awareutcfromtimestamputcnowc                 \    | t         vrd|  }t        |      t                t        |       S )Nz4IPython.utils.tz is deprecated and has no attribute )__all__AttributeError_warn_deprecatedgetattr)nameerrs     Z/var/www/html/software/conda/envs/higlass/lib/python3.12/site-packages/IPython/utils/tz.py__getattr__r   "   s1    7DTFKS!!4=    c                  @    d} t        j                  | t        d       y )NzKThe module `IPython.utils.tz` is deprecated and will be completely removed.   )category
stacklevel)warningswarnDeprecationWarning)msgs    r   r   r   ,   s    
WCMM# 2qAr   c                   *    e Zd ZdZ e        d Zd Zy)r   zNtzinfo object for UTC (zero offset)

    Deprecated since IPython 8.19.0.
    c                     t         S NZEROselfds     r   	utcoffsetztzUTC.utcoffset9       r   c                     t         S r   r   r!   s     r   dstz	tzUTC.dst<   r%   r   N)__name__
__module____qualname____doc__r   r$   r'    r   r   r   r   1   s    
 r   r   c                       fd}|S )zgdecorator for adding UTC tzinfo to datetime's utcfoo methods

    Deprecated since IPython 8.19.0.
    c                  T    t                 | i |}|j                  t              S )N)r   )r   replaceUTC)argskwargsdtunawares      r   
utc_methodzutc_aware.<locals>.utc_methodI   s)    d%f%zzz%%r   r,   )r4   r5   s   ` r   r   r   C   s    &
 r   )r+   r   r   r   r   r   r    r   r   r   r0   r   r   r	   r,   r   r   <module>r6      sm   &  0 0
 ? |B
F  g X667 	8??	#r   