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

Function TimeFromUnixNano

model/time.go:65–67  ·  view source on GitHub ↗

TimeFromUnixNano returns the Time equivalent to the Unix Time t provided in nanoseconds.

(t int64)

Source from the content-addressed store, hash-verified

63// TimeFromUnixNano returns the Time equivalent to the Unix Time
64// t provided in nanoseconds.
65func TimeFromUnixNano(t int64) Time {
66 return Time(t / nanosPerTick)
67}
68
69// Equal reports whether two Times represent the same instant.
70func (t Time) Equal(o Time) bool {

Callers 8

FloatToTimeFunction · 0.92
extractCounterFunction · 0.92
extractGaugeFunction · 0.92
extractUntypedFunction · 0.92
extractSummaryFunction · 0.92
extractHistogramFunction · 0.92
NowFunction · 0.85
TestTimeConversionsFunction · 0.85

Calls 1

TimeTypeAlias · 0.85

Tested by 1

TestTimeConversionsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…