MCPcopy Index your code
hub / github.com/cortexproject/cortex / convertMsToTime

Function convertMsToTime

pkg/api/queryapi/util.go:106–108  ·  view source on GitHub ↗
(unixMs int64)

Source from the content-addressed store, hash-verified

104}
105
106func convertMsToTime(unixMs int64) time.Time {
107 return time.Unix(0, unixMs*int64(time.Millisecond))
108}
109
110func convertMsToDuration(unixMs int64) time.Duration {
111 return time.Duration(unixMs) * time.Millisecond

Callers 4

Test_ConvertFunction · 0.85
RangeQueryHandlerMethod · 0.85
InstantQueryHandlerMethod · 0.85
createTestLogicalPlanFunction · 0.85

Calls

no outgoing calls

Tested by 2

Test_ConvertFunction · 0.68
createTestLogicalPlanFunction · 0.68