
`Ajd                 @   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 j   } t  j |  | |  } | | k S)N)datetimedatetoday)r   r   r   r   given r
   f/home/www/goberdata.com/tradingbinance/backend/.venv/Lib/site-packages/pip/_internal/utils/datetime.pytoday_is_later_than   s    r   )isodater   c             C   sr   t  j d k r t j j |   St j j |  j d  rg d |  k sU d |  j   k rg |  j d d  n |   Sd 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:00N)r   r   )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   