convert number to time python

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
showing results for - "convert number to time python"
Gaia
13 Mar 2020
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.