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

Method strptime

Lib/_pydatetime.py:1074–1081  ·  view source on GitHub ↗

Parse string according to the given date format (like time.strptime()). For a list of supported format codes, see the documentation: https://docs.python.org/3/library/datetime.html#format-codes

(cls, date_string, format)

Source from the content-addressed store, hash-verified

1072
1073 @classmethod
1074 def strptime(cls, date_string, format):
1075 """Parse string according to the given date format (like time.strptime()).
1076
1077 For a list of supported format codes, see the documentation:
1078 https://docs.python.org/3/library/datetime.html#format-codes
1079 """
1080 import _strptime
1081 return _strptime._strptime_datetime_date(cls, date_string, format)
1082
1083 # Conversions to string
1084

Callers 15

_explain_toMethod · 0.45
test_strptimeMethod · 0.45
test_strptimeMethod · 0.45
test_strptime_ampmMethod · 0.45
test_strptime_z_emptyMethod · 0.45
test_strptimeMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_strptimeMethod · 0.36
test_strptimeMethod · 0.36
test_strptime_ampmMethod · 0.36
test_strptime_z_emptyMethod · 0.36
test_strptimeMethod · 0.36
test_strptime_errorsMethod · 0.36