Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

change a decimal to time in datetime python

str(int(math.floor(time))) + ':' + str(int((time%(math.floor(time)))*60)) + ':' + str(int(((time%(math.floor(time)))*60) % math.floor(((time%(math.floor(time)))*60))*60))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #decimal #time #datetime #python
ADD COMMENT
Topic
Name
6+1 =