DateTime.Time en secondes
from datetime import datetime
t = datetime.now().time()
seconds = (t.hour * 60 + t.minute) * 60 + t.second
Clumsy Caterpillar
from datetime import datetime
t = datetime.now().time()
seconds = (t.hour * 60 + t.minute) * 60 + t.second
import datetime
def seconds_to_time_object(seconds):
return datetime.datetime.fromtimestamp(seconds).time()