pub fn parse(text: &str) -> Result<Duration, String>
Parses a duration string.
If a component has no unit, an unknown unit, or the total overflows.