Dapatkan jam, menit, detik, dan mikrodetik menggunakan kelas waktu

# Python program to demonstrate time class
# import the date class
from datetime import time

Time = time(8, 5, 56, 12)

print("hour =", Time.hour)
print("minute =", Time.minute)
print("second =", Time.second)
print("microsecond =", Time.microsecond)
Outrageous Ostrich