Skip to main content

parse_interval

Function parse_interval 

Source
pub fn parse_interval(s: &str) -> Option<u64>
Expand description

Parse a human-readable interval string to seconds.

Supported units: s, m, h, d. Examples: "30s", "5m", "1h", "7d".