Date.from_erl-exclamation-mark

You're seeing just the function from_erl-exclamation-mark, go back to Date module for more information.
Link to this function

from_erl!(tuple, calendar \\ Calendar.ISO)

View Source

Specs

from_erl!(:calendar.date(), Calendar.calendar()) :: t()

Converts an Erlang date tuple but raises for invalid dates.

Examples

iex> Date.from_erl!({2000, 1, 1})
~D[2000-01-01]
iex> Date.from_erl!({2000, 13, 1})
** (ArgumentError) cannot convert {2000, 13, 1} to date, reason: :invalid_date