Skip to main content

parse_duration_secs

Function parse_duration_secs 

Source
pub fn parse_duration_secs(value: &str) -> Res<u64>
Expand description

Parses a human duration (30s, 10m, 24h, 7d, or bare seconds) into seconds — shared by the CLI (invite create --expires-in, tail --since) and the bridge’s catch_up tool.

§Errors

Returns an error if the numeric part does not parse.