Cldr.DateTime.Relative.scale_relative
You're seeing just the function
scale_relative
, go back to Cldr.DateTime.Relative module for more information.
Calculates the time span in the given unit
from the time given in seconds.
Examples
iex> Cldr.DateTime.Relative.scale_relative(1234, :second)
1234
iex> Cldr.DateTime.Relative.scale_relative(1234, :minute)
21
iex> Cldr.DateTime.Relative.scale_relative(1234, :hour)
0