
    &e                         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dS )
zT
Timezone utilities

Just UTC-awareness right now

Deprecated since IPython 8.19.0.
    N)tzinfo	timedeltadatetime)tzUTC	utc_awareutcfromtimestamputcnowc                 v    | t           vrd|  }t          |          t                       t          |           S )Nz4IPython.utils.tz is deprecated and has no attribute )__all__AttributeError_warn_deprecatedgetattr)nameerrs     0lib/python3.11/site-packages/IPython/utils/tz.py__getattr__r   "   s@    7KTKKS!!!4==    c                  B    d} t          j        | t          d           d S )NzKThe module `IPython.utils.tz` is deprecated and will be completely removed.   )category
stacklevel)warningswarnDeprecationWarning)msgs    r   r   r   ,   s%    
WCM# 2qAAAAAAr   c                   2    e Zd ZdZ e             d Zd ZdS )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   sM         
       r   r   c                       fd}|S )zgdecorator for adding UTC tzinfo to datetime's utcfoo methods

    Deprecated since IPython 8.19.0.
    c                  f    t                        | i |}|                    t                    S )N)r   )r   replaceUTC)argskwargsdtunawares      r   
utc_methodzutc_aware.<locals>.utc_methodI   s7    Wd%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      s    &  0 0 0 0 0 0 0 0 0 0
 ?
>
> y||  B B B
    F    egg   9X677 	8?	#	#r   