Skip to main content

parse_duration

Function parse_duration 

Source
pub fn parse_duration(text: &str) -> Option<i64>
Expand description

Read 30s, 15m, 24h, 7d, 2w, or a bare number of seconds, as seconds.