Function parse

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

Parse a duration string into a Duration.

ยงErrors

Returns error::Error if the input string is not a valid duration format or cannot be converted into a Duration. Parse a duration string into a Duration