MCPcopy Create free account
hub / github.com/cortexproject/cortex / FormatTimeMillis

Function FormatTimeMillis

pkg/util/time.go:33–35  ·  view source on GitHub ↗

FormatTimeMillis returns a human readable version of the input time (in milliseconds).

(ms int64)

Source from the content-addressed store, hash-verified

31
32// FormatTimeMillis returns a human readable version of the input time (in milliseconds).
33func FormatTimeMillis(ms int64) string {
34 return TimeFromMillis(ms).String()
35}
36
37// FormatTimeModel returns a human readable version of the input time.
38func FormatTimeModel(t model.Time) string {

Callers 1

DoMethod · 0.92

Calls 2

TimeFromMillisFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected