Just use the datetime.time() function
datetime.time()
Return time object with same hour, minute, second and microsecond. tzinfo is None. See also method timetz().
This will return a datetime.time
object and you can access the data with the time.hour
time.minute
and time.second
attributes.