Lines Matching refs:date_string
533 .. classmethod:: date.fromisoformat(date_string)
535 Return a :class:`date` corresponding to a *date_string* given in any valid
1040 .. classmethod:: datetime.fromisoformat(date_string)
1042 Return a :class:`.datetime` corresponding to a *date_string* in any valid
1092 .. classmethod:: datetime.strptime(date_string, format)
1094 Return a :class:`.datetime` corresponding to *date_string*, parsed according to
1099 datetime(*(time.strptime(date_string, format)[0:6]))
1101 :exc:`ValueError` is raised if the date_string and format
1114 *date_string* values that do not have a year, explicitly add a year that
1120 >>> date_string = "02/29"
1121 >>> when = datetime.strptime(f"{date_string};1984", "%m/%d;%Y") # Avoids leap year bug.
2404 | Signature | ``strftime(format)`` | ``strptime(date_string,…
2578 Using ``datetime.strptime(date_string, format)`` is equivalent to::
2580 datetime(*(time.strptime(date_string, format)[0:6]))