MCPcopy Index your code
hub / github.com/python/cpython / _strptime_datetime_date

Function _strptime_datetime_date

Lib/_strptime.py:804–809  ·  view source on GitHub ↗

Return a date instance based on the input string and the format string.

(cls, data_string, format="%a %b %d %Y")

Source from the content-addressed store, hash-verified

802 return time.struct_time(tt[:time._STRUCT_TM_ITEMS])
803
804def _strptime_datetime_date(cls, data_string, format="%a %b %d %Y"):
805 """Return a date instance based on the input string and the
806 format string."""
807 tt, _, _ = _strptime(data_string, format)
808 args = tt[:3]
809 return cls(*args)
810
811def _parse_tz(tzname, gmtoff, gmtoff_fraction):
812 tzdelta = datetime_timedelta(seconds=gmtoff, microseconds=gmtoff_fraction)

Callers

nothing calls this directly

Calls 2

_strptimeFunction · 0.85
clsClass · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…