Time.to_seconds_after_midnight

You're seeing just the function to_seconds_after_midnight, go back to Time module for more information.
Link to this function

to_seconds_after_midnight(time)

View Source (since 1.11.0)

Specs

to_seconds_after_midnight(Calendar.time()) :: {integer(), non_neg_integer()}

Converts a Time struct to a number of seconds after midnight.

The returned value is a two-element tuple with the number of seconds and microseconds.

Examples

iex> Time.to_seconds_after_midnight(~T[23:30:15])
{84615, 0}
iex> Time.to_seconds_after_midnight(~N[2010-04-17 23:30:15.999])
{84615, 999000}