Vtc.Timecode.divmod
You're seeing just the function
divmod
, go back to Vtc.Timecode module for more information.
Specs
Divides the total frame count of dividend
by divisor
and returns both a quotient
and a remainder as Timecode values.
If division would result in a non-whole-frame quotient, that value is floored before the remainder is calculated.
If the remainder would result in a non-whole-frame value, it is rounded.
Examples
iex> dividend = Timecode.with_frames!("01:00:00:01", Rates.f23_98())
iex> Timecode.divmod(dividend, 4) |> inspect()
"{<00:15:00:00 @ <23.98 NTSC NDF>>, <00:00:00:01 @ <23.98 NTSC NDF>>}"