Guest User

Untitled

a guest
Oct 18th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. time = float(input("Input time in seconds: "))
  2. day = time // (24 * 3600)
  3. time = time % (24 * 3600)
  4. hour = time // 3600
  5. time %= 3600
  6. minutes = time // 60
  7. time %= 60
  8. seconds = time
  9. print("d:h:m:s-> %d:%d:%d:%d" % (day, hour, minutes, seconds))
Add Comment
Please, Sign In to add comment