Skip to main content

time

Function time 

Source
pub fn time(input: &str) -> Result<Time, ParseError>
Expand description

A time extent: 30s, 500ms, 7d, 1.5h, 250 us.

ยงErrors

ParseError if the magnitude is not a finite decimal number, the unit is missing on a non-zero magnitude, or the unit is not a duration.