from datetime import timedelta timedelta_object = timedelta(hours=24.5) print(str(timedelta_object)) # '1 day, 0:30:00'