simple

Function simple 

Source
pub fn simple(interval: &str) -> Result<Duration, ParseError>
Expand description

Parse an interval like “4 weeks 12 hours”. It can include weeks, days, hours, minutes and seconds. It can not include years or months.