Skip to main content

format_date

Function format_date 

Source
pub fn format_date(time: &SystemTime, format: &str, utc: bool) -> String
Expand description

Format a SystemTime using the given format string.

Uses libc strftime for most specifiers. Handles %N (nanoseconds) manually since strftime does not support it.