MCPcopy Create free account
hub / github.com/containerd/nerdctl / TimeSinceInHuman

Function TimeSinceInHuman

pkg/formatter/formatter.go:172–174  ·  view source on GitHub ↗
(since time.Time)

Source from the content-addressed store, hash-verified

170}
171
172func TimeSinceInHuman(since time.Time) string {
173 return fmt.Sprintf("%s ago", units.HumanDuration(time.Since(since)))
174}
175
176func FormatLabels(labelMap map[string]string) string {
177 strs := make([]string, len(labelMap))

Callers 6

printHistoryMethod · 0.92
TestTimeSinceInHumanFunction · 0.85
ContainerStatusFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestTimeSinceInHumanFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…