Skip to main content

format_rfc3339_from_nanos

Function format_rfc3339_from_nanos 

Source
pub fn format_rfc3339_from_nanos(ts: UnixNanos) -> Result<String>
Expand description

Converts a [UnixNanos] timestamp to an RFC 3339 string in UTC.

ยงErrors

Returns an error when the nanosecond value is outside the range representable by chrono::DateTime::<chrono::Utc>::from_timestamp.