Skip to main content

Convert Time Text To Time

Category: Pr Time Convert Time Text To Time block screenshot

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​

InputRequiredValue KindTypesEnum Values
timeTextyesexpressionstring—
formatnoexpressionenum-stringAUTO_GENERIC, SECONDS_SUFFIX, M_SS, MM_SS, H_MM_SS, HH_MM_SS, H_MM_SS_MS, HH_MM_SS_MS

Notes​

  • 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.

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.

kind: Recipe · format: persisted-document · validation: Schema only

Topics: markers, YouTube chapters, text import, file dialogs, multiline prompts, marker comments

Source: recipes/ex-markers-import-youtube-chapter-text-as-sequence-markers.json

Download JSON