Skip to main content

ts_fmt

Function ts_fmt 

Source
pub fn ts_fmt(ts_ns: u64) -> String
Expand description

Format a nanosecond UNIX timestamp as a local-time readable string: "YYYY-MM-DD HH:MM:SS.nnnnnnnnn".

This is used for JSON serialisation of LogRecord::ts.