Name
strptime
Synopsis
strptime(str
,fmt
='%a %b %d %H:%M:%S %Y')
Parses str
according to format string
fmt
, and returns the instant in time-tuple
format. With Python 2.2 and earlier, strptime
is
not available on all platforms. However, a pure Python implementation
is available at http://aspn.activestate.com/ASPN/Python/Cookbook/Recipe/56036.
In Python 2.3, the pure Python implementation will be used as a
fallback on platforms that provide no other, so that
time.strptime
will always be available.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.