Converting string with UTC offset to a datetime object [duplicate]

It looks as if strptime doesn’t always support %z. Python appears to just call the C function, and strptime doesn’t support %z on your platform.

Note: from Python 3.2 onwards it will always work.

Leave a Comment