Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python convert timestamp to datetime

from datetime import datetime

timestamp = 1545730073
dt_object = datetime.fromtimestamp(timestamp)

print("dt_object =", dt_object)
print("type(dt_object) =", type(dt_object))
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #python #convert #timestamp #datetime
ADD COMMENT
Topic
Name
7+5 =