Skip to main content

parse_millis

Function parse_millis 

Source
pub fn parse_millis(raw: &str) -> Result<u64, DurationParseError>
Expand description

Parse a <number><unit> duration string into milliseconds.

See the module docs for the grammar. Units are matched case-insensitively and tolerate whitespace before the suffix.