Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Print hour, minute, second and microsecond

from datetime import time

a = time(11, 34, 56)

print("hour =", a.hour)
print("minute =", a.minute)
print("second =", a.second)
print("microsecond =", a.microsecond)
 
PREVIOUS NEXT
Tagged: #Python #Print #microsecond
ADD COMMENT
Topic
Name
2+2 =