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()) :: t()

Divides dividend by divisor. The result will inherit the framerate of dividend and be floored to the nearest frame.

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>>"