Skip to main content

validate_format

Function validate_format 

Source
pub fn validate_format(fmt: &str) -> Result<(), String>
Expand description

Validates a strftime format string by checking for any unrecognized specifiers. Returns Ok(()) if the format is valid, or Err(message) if not.