Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get current time in hours minutes and seconds

import datetime
currentime = datetime.datetime.now()
hours = currentime.strftime('%H')
minutes = currentime.strftime('%M')
seconds = currentime.strftime('%S')
mixed = currentime.strftime('%H:%M:%S')
 
PREVIOUS NEXT
Tagged: #python #current #time #hours #minutes #seconds
ADD COMMENT
Topic
Name
4+8 =