apimachinery: k8s.io/apimachinery/pkg/util/duration Index | Files

package duration

import "k8s.io/apimachinery/pkg/util/duration"

Index

Package Files

duration.go

func HumanDuration Uses

func HumanDuration(d time.Duration) string

HumanDuration returns a succint representation of the provided duration with limited precision for consumption by humans. It provides ~2-3 significant figures of duration.

func ShortHumanDuration Uses

func ShortHumanDuration(d time.Duration) string

ShortHumanDuration returns a succint representation of the provided duration with limited precision for consumption by humans.

Package duration imports 2 packages (graph) and is imported by 77 packages. Updated 2018-11-13. Refresh now. Tools for package owners.