Time.from_iso8601-exclamation-mark

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

from_iso8601!(string, calendar \\ Calendar.ISO)

View Source

Specs

from_iso8601!(String.t(), Calendar.calendar()) :: t()

Parses the extended "Local time" format described by ISO 8601:2019.

Raises if the format is invalid.

Examples

iex> Time.from_iso8601!("23:50:07,123Z")
~T[23:50:07.123]
iex> Time.from_iso8601!("23:50:07.123Z")
~T[23:50:07.123]
iex> Time.from_iso8601!("2015:01:23 23-50-07")
** (ArgumentError) cannot parse "2015:01:23 23-50-07" as time, reason: :invalid_format