-
-
Save parzibyte/ad2f92c88be8887359679cc64bd08a2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func segundosASegundosMinutosYHoras(segundos int) string { | |
horas := int(segundos / 60 / 60) | |
segundos -= horas * 60 * 60 | |
minutos := int(segundos / 60) | |
segundos -= (minutos * 60) | |
return fmt.Sprintf("%02d:%02d:%02d", horas, minutos, segundos) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment