fn parse_timeunit( value: Option<&str>, not_found_msg: &str, parse_fail_msg: &str, ) -> Result<TimeUnit>