-
Notifications
You must be signed in to change notification settings - Fork 0
timecodeConvert
Corey Avis edited this page Sep 23, 2026
·
2 revisions
Converts a timecode into seconds.
timeCodeConvert(string $timecode = '00:00:00'): mixed
timecode (string) : The timecode to convert.
(mixed)
: Returns the converted timecode into a single integer value representing the total duration in seconds. Milliseconds are included only when provided.
: Returns false if invalid timecode.
$fx->timeCodeConvert('3:00') = 180
$fx->timeCodeConvert('23:45:67') = 85567
$fx->timeCodeConvert('-3:00') = -180
$fx->timeCodeConvert('23:45:67.8') = 85567.800
- Triggers a warning if the argument is not a valid timecode.