0

I'm trying to convert a string (well, unicode) in the following format to a timedelta or datetime object,

u'2015-05-06 12:48:37 UTC+00:00'

I can't find anywhere with the timezone included and

datetime.strptime('2015-05-06 12:48:37', '%Y-%m-%d %H:%M-%S')

without the timezone is throwing a does not match format error.

Can anyone point me in the right direction? Also an explaination of the formatting would be great.

Mejaniks
  • 53
  • 8

0 Answers0