MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / formatUnixTime

Function formatUnixTime

internal/cli/tasks.go:119–125  ·  view source on GitHub ↗
(ts int64)

Source from the content-addressed store, hash-verified

117}
118
119func formatUnixTime(ts int64) string {
120 if ts == 0 {
121 return ""
122 }
123
124 return time.Unix(ts, 0).Format("2006-01-02 15:04:05")
125}

Callers 1

runTasksListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected