classmethod datetime.strptime(date_string, format)
Return a datetime
corresponding to date_string, parsed according to format. This is equivalent to datetime(*(time.strptime(date_string,
format)[0:6]))
. ValueError
is raised if the date_string and format can’t be parsed by time.strptime()
or if it returns a value which isn’t a time tuple. For a complete list of formatting directives, see strftime() and strptime() Behavior.
Please login to continue.