import "github.com/prometheus/common/model" now := model.Now()
import "github.com/prometheus/common/model" t, err := model.ParseTimestamp("2020-01-01T00:00:00Z") if err != nil { // Handle error }
import "github.com/prometheus/common/model" t := model.Now() t = t.Add(10 * time.Minute)Overall, the `github.com/prometheus/common/model` package library provides a useful set of utilities for working with Prometheus metric data, including the Time struct for representing timestamps.