Euclid.Duration.convert
You're seeing just the function
convert
, go back to Euclid.Duration module for more information.
Specs
Converts a {duration, time_unit} tuple into a numeric duration. Rounds down to the nearest whole number.
Uses System.convert_time_unit/3
under the hood; see its documentation for more details.
Examples
iex> Euclid.Duration.convert({121, :second}, :minute)
2