This commit is contained in:
aynakeya
2024-04-13 00:59:44 -07:00
parent 119862a023
commit fd872c1f5b
58 changed files with 806 additions and 350 deletions

8
pkg/util/time.go Normal file
View 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)
}