mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2026-03-19 10:29:47 +08:00
* rewrite * update submodule * make width height configurable * update dependency * update * update file * update dep * fix basic config layout * update plugin management * more stuff * add blacklist * fix todo * fix windows gethandle * update windows update guide * update windows build guide * include go mod tidy in script * update todo * fix source session * fix text output * add plugin play duration control * fix id diange not working * update todo * update version number
9 lines
178 B
Go
9 lines
178 B
Go
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)
|
|
}
|