Skip to main content

parse

Function parse 

Source
pub fn parse(text: &str) -> Result<Duration, String>
Expand description

Parses a duration string.

ยงErrors

If a component has no unit, an unknown unit, or the total overflows.