Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/engine/internal/util/time.go

9 lines
289 B

package util //nolint:revive
import "time"
// FormatTimeRFC3339Nano formats the given time in RFC3339Nano format in UTC.
// Use this everywhere in the engine for consistent timestamp formatting.
func FormatTimeRFC3339Nano(t time.Time) string {
return t.UTC().Format(time.RFC3339Nano)
}