Time.from_erl

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

from_erl(tuple, microsecond \\ {0, 0}, calendar \\ Calendar.ISO)

View Source

Specs

from_erl(:calendar.time(), Calendar.microsecond(), Calendar.calendar()) ::
  {:ok, t()} | {:error, atom()}

Converts an Erlang time tuple to a Time struct.

Examples

iex> Time.from_erl({23, 30, 15}, {5000, 3})
{:ok, ~T[23:30:15.005]}
iex> Time.from_erl({24, 30, 15})
{:error, :invalid_time}