MCPcopy Create free account
hub / github.com/code-scan/AutoSubtitles / Int2time

Function Int2time

pkg/aliyun.go:34–50  ·  view source on GitHub ↗
(t int64)

Source from the content-addressed store, hash-verified

32}
33
34func Int2time(t int64) string {
35 var (
36 second, min, hours, millisecond int64
37 )
38 millisecond = t % 1000
39 second = t / 1000
40 if second > 59 {
41 min = (t / 1000) / 60
42 second = second % 60
43 }
44 if min > 59 {
45 hours = (t / 1000) / 3600
46 min = min % 60
47 }
48 return fmt.Sprintf("%d:%d:%d,%d", hours, min, second, millisecond)
49
50}

Callers 1

GetResultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected