Convert Time Text To Time
Parses generic duration text such as 0:05, 12:34, 1:02:03, or 0:05,250 to seconds. Parses generic duration text without SMPTE frame semantics. SECONDS_SUFFIX accepts non-negative seconds with an explicit s suffix (12.5s or 12 s, decimal point, case-insensitive), and rejects bare numbers. This format is explicit, not part of AUTO_GENERIC. AUTO_GENERIC accepts M:SS, H:MM:SS, and the matching millisecond forms with ,MS. SECONDS_SUFFIX parses non-negative seconds with an explicit s suffix: 12.5s or 12 s, using a decimal point. Surrounding whitespace and unit capitalization are ignored; bare numbers, negative values and decimal commas are rejected. AUTO_GENERIC retains its existing duration formats (M:SS, H:MM:SS, and matching millisecond forms). It does not auto-detect the new seconds suffix. Neither parser applies a sequence zero point or a source media-start offset.
Inputs
| Input | Required | Value Kind | Types | Enum Values |
|---|---|---|---|---|
timeText | yes | expression | string | — |
format | no | expression | enum-string | AUTO_GENERIC, SECONDS_SUFFIX, M_SS, MM_SS, H_MM_SS, HH_MM_SS, H_MM_SS_MS, HH_MM_SS_MS |
Notes
SECONDS_SUFFIXparses non-negative seconds with an explicitssuffix:12.5sor12 s, using a decimal point. Surrounding whitespace and unit capitalization are ignored; bare numbers, negative values and decimal commas are rejected.AUTO_GENERICretains its existing duration formats (M:SS,H:MM:SS, and matching millisecond forms). It does not auto-detect the new seconds suffix.- Neither parser applies a sequence zero point or a source media-start offset.
Examples
Import YouTube Chapter Text As Sequence Markers
Prompts for a pasted chapter block or a text file, optionally clears existing active-sequence markers, then imports YouTube-style chapter lines as sequence markers.
Topics: markers, YouTube chapters, text import, file dialogs, multiline prompts, marker comments
Source: recipes/ex-markers-import-youtube-chapter-text-as-sequence-markers.json