Skip to main content

fmt_ts

Function fmt_ts 

Source
pub fn fmt_ts(s: &mut String, field_name: &str, ts: u64) -> Result
Available on crate feature python only.
Expand description

Formats a nanosecond UNIX timestamp field for a Python repr.

ยงErrors

This function returns an error if it fails to expand the buffer to fit the string.