Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

datetime.time to seconds

from datetime import datetime

t = datetime.now().time()
seconds = (t.hour * 60 + t.minute) * 60 + t.second
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #seconds
ADD COMMENT
Topic
Name
8+6 =