package templates

import "github.com/prometheus/common/helpers/templates"

Index

Functions

func ConvertToFloat

func ConvertToFloat(i interface{}) (float64, error)

func FloatToTime

func FloatToTime(v float64) (*time.Time, error)

func HumanizeDuration

func HumanizeDuration(i interface{}) (string, error)

func HumanizeTimestamp

func HumanizeTimestamp(i interface{}) (string, error)

Source Files

time.go

Version
v0.60.0
Published
Oct 1, 2024
Platform
js/wasm
Imports
6 packages
Last checked
2 hours ago

Tools for package owners.