How to parse long value to date in Python -
this question has answer here:
i have value returned server 1394369201000 , have convert gwt date format? have found different ways in documentation fix this:
dt = datetime.datestr(1394369201000 , 'yyyymmdd')
but didn't work.
could please, me fix this?
>>> datetime import datetime >>> datetime.utcfromtimestamp(1394369201000/1000.0) datetime.datetime(2014, 3, 9, 12, 46, 41)
Comments
Post a Comment