o
    0id                     @   sF   d Z ddlZddlZdedededefddZd	edejfd
dZdS )z-For when pip wants to check the date or time.    Nyearmonthdayreturnc                 C   s    t j }t | ||}||kS )N)datetimedatetoday)r   r   r   r   given r
   ^/sda-disk/www/egybert/egybert_env/lib/python3.10/site-packages/pip/_internal/utils/datetime.pytoday_is_later_than   s   
r   isodatec                 C   sN   t jdkrtj| S tj| dr$d| v sd|  v r$| ddS | S )zConvert an ISO format string to a datetime.

    Handles the format 2020-01-22T14:24:01Z (trailing Z)
    which is not supported by older versions of fromisoformat.
    )      ZT z+00:00)sysversion_infor   fromisoformatendswithstripreplace)r   r
   r
   r   parse_iso_datetime   s   

r   )__doc__r   r   intboolr   strr   r
   r
   r
   r   <module>   s
    