cast_timestamp: A helper function to map an input of various types to a...

View source: R/build_url.R

cast_timestampR 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.


promr documentation built on Aug. 24, 2022, 5:05 p.m.