convert number to time python

Solutions on MaxInterview for convert number to time python by the best coders in the world

showing results for - "convert number to time python"
Gaia
13 Mar 2020
1time = 72.345.
23hours = int(time)
4minutes = (time*60) % 60.
5seconds = (time*3600) % 60.
67print("%d:%02d.%02d" % (hours, minutes, seconds))
8>> 72:20:42.