Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python convert datetime to float

DT = datetime.datetime(2016,01,30,15,16,19,234000) #trailing zeros are required
DN = (DT - datetime.datetime(2000,1,1)).total_seconds()
print repr(DN)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #convert #datetime #float
ADD COMMENT
Topic
Name
7+4 =