Function is_renderable_time_format

Source
fn is_renderable_time_format(format: &str) -> bool
Expand description

Whether chrono can render this format string.

DateTime::format() defers the work, and to_string() turns an invalid specifier into a panic; writing into a String returns the error instead, which is what makes the format checkable at all.