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.

浙ICP备2023005800号-2 浙公网安备33010902005384号