Skip to main content

parse_timestamp_ms

Function parse_timestamp_ms 

Source
pub fn parse_timestamp_ms(timestamp: &str) -> Result<u64, String>
Expand description

parse an ipc seek timestamp into milliseconds.

accepts SS, MM:SS, or HH:MM:SS with optional fractional seconds for the bare-seconds form. Rejects non-finite, negative, and overflowing input instead of saturating or wrapping through a cast.