Skip to main content

format

Function format 

Source
pub fn format(ts: SystemTime, str: &str) -> String
Expand description

Formats a system time in UTC with a Chrono format string.

The pattern is passed to Chrono without modification. The rendered value is returned as an owned string.