import datetime def seconds_to_time_object(seconds): return datetime.datetime.fromtimestamp(seconds).time()