Skip to main content

parse_duration

Function parse_duration 

Source
pub fn parse_duration(duration: &str) -> Result<Duration>
Expand description

Parses a human-readable duration with the cyborgtime parser.

Successful input is returned as a standard Duration. Parser failures are wrapped with the original input for context.