parse_ass_time

Function parse_ass_time 

Source
pub fn parse_ass_time(time_str: &str) -> Result<u32, CoreError>
Expand description

Parse ASS time format (H:MM:SS.CC) to centiseconds

ASS uses centiseconds (1/100th second) for timing. Supports various formats including fractional seconds.

§Example

assert_eq!(parse_ass_time("0:01:30.50")?, 9050); // 1:30.5 = 9050 centiseconds

§Errors

Returns an error if the time format is invalid or cannot be parsed.