Skip to main content

is_timezone_component

Function is_timezone_component 

Source
fn is_timezone_component(component: &str) -> bool
Expand description

Test one /-separated component of an m.tz name.

Components hold ASCII alphanumerics, _, +, and -. Each begins with a letter, which is what refuses a bare numeric offset.