pub(crate) fn parse_period(s: &str) -> Result<u64, String>
Parse a period string like 10m, 7d, or 3600s.
10m
7d
3600s