Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 23, 2021 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/c449a80eadb88177cb9f25dc235de98f to your computer and use it in GitHub Desktop.
Save parzibyte/c449a80eadb88177cb9f25dc235de98f to your computer and use it in GitHub Desktop.
def segundos_a_segundos_minutos_y_horas(segundos):
horas = int(segundos / 60 / 60)
segundos -= horas*60*60
minutos = int(segundos/60)
segundos -= minutos*60
return f"{horas:02d}:{minutos:02d}:{segundos:02d}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment