Function validate_format

Source
pub fn validate_format(format: impl AsRef<str>) -> Result<(), Error>
Expand description

Validates a strftime format string for correct syntax. This performs a basic validation to catch common errors.

Returns Ok(()) if the format appears valid, or an error describing the issue.