Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print current time hours and minutes in python

import datetime
currentime = datetime.datetime.now()
time = currentime.strftime('%H:%M')
print(time)
 
PREVIOUS NEXT
Tagged: #print #current #time #hours #minutes #python
ADD COMMENT
Topic
Name
6+3 =