Skip to main content

format_time_with_warnings

Function format_time_with_warnings 

Source
pub fn format_time_with_warnings(
    format_str: &str,
    source: TimeFormatStyle,
    target: TimeFormatStyle,
) -> FormatConversionResult
Expand description

Convert a time format string with warning collection.

Similar to format_time but collects warnings about specifiers that don’t have direct equivalents in the target format.