Cldr.Calendar.Duration.to_string-exclamation-mark

You're seeing just the function to_string-exclamation-mark, go back to Cldr.Calendar.Duration module for more information.
Link to this function

to_string!(duration, options \\ [])

View Source

Specs

to_string!(t(), Keyword.t()) :: String.t() | no_return()

Formats a duration as a string or raises an exception on error.

Arguments

Options

See Cldr.Calendar.Duration.to_string/2

Returns

  • A formatted string or

  • raises an exception