pub fn parse_duration(text: &str) -> Option<i64>
Parses a duration: a number followed by ms, s, min, h or d, or a bare number of milliseconds.
ms
s
min
h
d