MCPcopy Index your code
hub / github.com/RustPython/RustPython / _strptime_time

Function _strptime_time

Lib/_strptime.py:780–784  ·  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

778 weekday, julian, tz, tzname, gmtoff), fraction, gmtoff_fraction
779
780def _strptime_time(data_string, format="%a %b %d %H:%M:%S %Y"):
781 """Return a time struct based on the input string and the
782 format string."""
783 tt = _strptime(data_string, format)[0]
784 return time.struct_time(tt[:time._STRUCT_TM_ITEMS])
785
786def _strptime_datetime_date(cls, data_string, format="%a %b %d %Y"):
787 """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