mirror of
https://github.com/weyne85/chaturbate-dvr.git
synced 2025-10-29 16:58:56 +00:00
12 lines
220 B
Go
12 lines
220 B
Go
package handler
|
|
|
|
import "fmt"
|
|
|
|
func formatPlaytime(seconds int) string {
|
|
hours := seconds / 3600
|
|
seconds %= 3600
|
|
minutes := seconds / 60
|
|
seconds %= 60
|
|
return fmt.Sprintf("%02d:%02d:%02d", hours, minutes, seconds)
|
|
}
|