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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -