MCPcopy Create free account
hub / github.com/prometheus/common / TimeFromUnix

Function TimeFromUnix

model/time.go:59–61  ·  view source on GitHub ↗

TimeFromUnix returns the Time equivalent to the Unix Time t provided in seconds.

(t int64)

Source from the content-addressed store, hash-verified

57// TimeFromUnix returns the Time equivalent to the Unix Time t
58// provided in seconds.
59func TimeFromUnix(t int64) Time {
60 return Time(t * second)
61}
62
63// TimeFromUnixNano returns the Time equivalent to the Unix Time
64// t provided in nanoseconds.

Callers 2

TestComparatorsFunction · 0.85
TestDurationFunction · 0.85

Calls 1

TimeTypeAlias · 0.85

Tested by 2

TestComparatorsFunction · 0.68
TestDurationFunction · 0.68