Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert integer to datetime in python

>>> import datetime
>>> your_timestamp = 1331856000000
>>> date = datetime.datetime.fromtimestamp(your_timestamp / 1e3)

>>> date
datetime.datetime(2012, 3, 16, 1, 0)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #integer #datetime #python
ADD COMMENT
Topic
Name
1+3 =