Skip to main content

parse_window

Function parse_window 

Source
pub fn parse_window(s: &str) -> CliResult<WindowStep>
Expand description

Parse a --window duration: 45s, 30m, 6h, 1d, 1w (or a bare integer = seconds). Must be positive.

d / w yield calendar steps; everything else is absolute. So 1d and 24h differ across a DST transition, deliberately.