mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2026-05-19 09:15:47 +08:00
update
This commit is contained in:
8
pkg/util/time.go
Normal file
8
pkg/util/time.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package util
|
||||
|
||||
import "fmt"
|
||||
|
||||
// FormatTime formats time in seconds to string in format "m:ss"
|
||||
func FormatTime(sec int) string {
|
||||
return fmt.Sprintf("%01d:%02d", sec/60, sec%60)
|
||||
}
|
||||
Reference in New Issue
Block a user