Skip to main content

subtitle_timestamp

Function subtitle_timestamp 

Source
pub fn subtitle_timestamp(ms: u64, sep: char) -> String
Expand description

HH:MM:SS<sep>mmm for a millisecond offset: , gives the SubRip and whisper.cpp timestamps form (01:02:03,004), . gives the WebVTT form (01:02:03.004). Shared by to_srt, to_vtt and any whisper-compatible JSON writer (#1095).