Skip to main content

fmt_with

Function fmt_with 

Source
pub fn fmt_with(
    t: SystemTime,
    format_desc: &[FormatItem<'_>],
) -> Result<String, Error>
Expand description

Formats a SystemTime according to the given format description

Also converts any time::error::format to fmt::Error so that it can be unwrapped in the Display trait impl