Vtc.Timecode.div
You're seeing just the function
div
, go back to Vtc.Timecode module for more information.
Specs
div( dividend :: t(), divisor :: Ratio.t() | number(), opts :: [{:round, maybe_round()}] ) :: t()
Divides dividend
by divisor
. The result will inherit the framerate of dividend
and rounded to the nearest whole-frame based on the :round
option.
Options
- round: How to round the result with respect to whole-frame values. Defaults to
:floor
to matchdivmod
and the expected meaning ofdiv
to mean integer division in elixir.
Examples
iex> dividend = Timecode.with_frames!("01:00:00:00", Rates.f23_98())
iex> Timecode.div(dividend, 2) |> inspect()
"<00:30:00:00 @ <23.98 NTSC NDF>>"
iex> dividend = Timecode.with_frames!("01:00:00:00", Rates.f23_98())
iex> Timecode.div(dividend, 0.5) |> inspect()
"<02:00:00:00 @ <23.98 NTSC NDF>>"