cast_timestamp {promr}R Documentation

A helper function to map an input of various types to a timestamp string suitable for use with Prometheus.

Description

A helper function to map an input of various types to a timestamp string suitable for use with Prometheus.

Usage

cast_timestamp(input)

Arguments

input

A RFC3339 timestamp string, numerical unix timestamp, or POSIXct object.

Value

A Prometheus-compatible timestamp that can be coerced to a string.


[Package promr version 0.1.3 Index]