Skip to main content

seconds

Function seconds 

Source
pub fn seconds(duration: &str) -> Option<u32>
Expand description

Seconds in a duration written <number><unit>, one or more times (90s, 1m30s, 2h): units h, m and s. None when it isn’t one.