-
Notifications
You must be signed in to change notification settings - Fork 0
timeSum
Corey Avis edited this page Sep 23, 2026
·
2 revisions
Sums multiple time values - provided as timecode strings (including millisecond precision), interger/float seconds, or an array of mixed formats - and returns the formatted total timecode.
method(mixed ...$args): string
args (mixed)
: Variadic argument accepting timecodes (e.g., "01:15:30" or "01:15:30.500"), numeric values in seconds/milliseconds (e.g., 90 or 1.5), or a single array containing these formats.
📌 Millisecond precision: Supports sub-second accuracy in both timecode strings (e.g.,
HH:MM:SS.mmm) and fractional second numbers.
(string) : Returns the formatted timecode representing the cumulative sum of all input arguments.
$fx->timeSum('01:15:00', 30, '04:30') = "01:20:00"
$fx->timeSum('01:15:00.250', 30.5, '04:30:100') = "01:20:00.850"
$fx->timeSum(['10:00', '20:00', 120]) = "00:32:00"
- No debug errors.