Cldr.DateTime.Relative.scale_relative

You're seeing just the function scale_relative, go back to Cldr.DateTime.Relative module for more information.
Link to this function

scale_relative(time, unit)

View Source

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