DeaD_EyE

seconds -> hours, minutes, seconds

Jun 18th, 2020
1,166
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def to_hms(seconds):
  2.     minutes, seconds = divmod(seconds, 60)
  3.     hours, minutes = divmod(minutes, 60)
  4.     return hours, minutes, seconds
RAW Paste Data