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

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -