a
    b½3jd  ã                   @   s>   d Z ddlZddlZeeeedœdd„Zeejdœ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
   úy/www/wwwroot/dpstar/app/297b3aabda72fedb274352021c2dd8b5_venv/lib/python3.9/site-packages/pip/_internal/utils/datetime.pyÚtoday_is_later_than   s    
r   )Úisodater   c                 C   sP   t jdkrtj | ¡S tj |  d¡rFd| v s:d|  ¡ v rF|  dd¡n| ¡S dS )z©Convert 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:00N)Ú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   