I have the string:
import datetime
time = "2016-02-01 19:14:54+02:00"
And trying to convert it to datetime obj:
result = datetime.datetime.strptime(time, "%Y-%m-%d %H:%M:%S%z")
It throws exception:
ValueError: time data '2016-02-01 19:14:54+02:00' does not match format '%Y-%m-%d %H:%M:%S%z'
Could you please help me what is wrong here?