Skip to main content

is_date_format_code

Function is_date_format_code 

Source
pub fn is_date_format_code(code: &str) -> bool
Expand description

Returns true if a custom number format string looks like a date/time format.

Checks for common date/time tokens such as y, m, d, h, s in the format code. Ignores text in quoted strings and escaped characters.