In the part discussing converting datetime objects from strings, you say that strptime uses the same format codes as strftime, but that's not quite right:
value = '2011-01-03'
stamp = datetime.strptime(value, '%Y-%m-%d') # works
datetime.strptime(value, '%F') # ValueError: 'F' is a bad directive in format '%F'
datetime.strftime(stamp, '%F') # works
In the part discussing converting datetime objects from strings, you say that
strptime
uses the same format codes asstrftime
, but that's not quite right: