Advertisement
DeaD_EyE

seconds -> hours, minutes, seconds

Jun 18th, 2020
1,428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. def to_hms(seconds):
  2.     minutes, seconds = divmod(seconds, 60)
  3.     hours, minutes = divmod(minutes, 60)
  4.     return hours, minutes, seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement