1time = 72.345
2
3hours = int(time)
4minutes = (time*60) % 60
5seconds = (time*3600) % 60
6
7print("%d:%02d.%02d" % (hours, minutes, seconds))
8>> 72:20:42
1str(int(math.floor(time))) + ':' + str(int((time%(math.floor(time)))*60)) + ':' + str(int(((time%(math.floor(time)))*60) % math.floor(((time%(math.floor(time)))*60))*60))