Skip to main content

parse_age

Function parse_age 

Source
pub fn parse_age(text: &str) -> Result<Duration, String>
Expand description

Parses an age as the clients’ --since and --older-than take it: 30m, 12h, 7d, 2w.