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

Function FormatTimeModel

pkg/util/time.go:38–40  ·  view source on GitHub ↗

FormatTimeModel returns a human readable version of the input time.

(t model.Time)

Source from the content-addressed store, hash-verified

36
37// FormatTimeModel returns a human readable version of the input time.
38func FormatTimeModel(t model.Time) string {
39 return TimeFromMillis(int64(t)).String()
40}
41
42func FormatMillisToSeconds(ms int64) string {
43 return strconv.FormatFloat(float64(ms)/float64(1000), 'f', -1, 64)

Callers 1

validateQueryTimeRangeFunction · 0.92

Calls 2

TimeFromMillisFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected