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

Function FormatMillisToSeconds

pkg/util/time.go:42–44  ·  view source on GitHub ↗
(ms int64)

Source from the content-addressed store, hash-verified

40}
41
42func FormatMillisToSeconds(ms int64) string {
43 return strconv.FormatFloat(float64(ms)/float64(1000), 'f', -1, 64)
44}
45
46// ParseTime parses the string into an int64, milliseconds since epoch.
47func ParseTime(s string) (int64, error) {

Callers 1

reportQueryStatsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected