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

Function _strptime_time

Lib/_strptime.py:798–802  ·  view source on GitHub ↗

Return a time struct based on the input string and the format string.

(data_string, format="%a %b %d %H:%M:%S %Y")

Source from the content-addressed store, hash-verified

796 weekday, julian, tz, tzname, gmtoff), fraction, gmtoff_fraction
797
798def _strptime_time(data_string, format="%a %b %d %H:%M:%S %Y"):
799 """Return a time struct based on the input string and the
800 format string."""
801 tt = _strptime(data_string, format)[0]
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

Callers

nothing calls this directly

Calls 1

_strptimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…