here how timestamp looks -
2015-07-17 06:01:51.066141+00:00 i'm looking around convert unix date time.
datetime.strptime("2015-07-17 06:01:51.066141+00:00", "%y-%m-%d %h:%m:%s.%f%z").strftime("%s") valueerror: 'z' bad directive in format '%y-%m-%d %h:%m:%s.%f%z' throws error me, because of wrong format being used.
ps: virtualenv on python 2.7
ideas please ?
python 2.7 strptime() not support z directive, either can use python 3.2+ or other 3rd party library dateutil.
Comments
Post a Comment