Cldr.DateTime.Format.hour_format
You're seeing just the function
hour_format
, go back to Cldr.DateTime.Format module for more information.
Link to this function
hour_format(locale \\ Cldr.get_locale(), backend \\ Cldr.Date.default_backend())
View SourceSpecs
hour_format(Cldr.Locale.locale_name() | Cldr.LanguageTag.t(), Cldr.backend()) :: {:ok, {String.t(), String.t()}} | {:error, {atom(), String.t()}}
Returns the postive and negative hour format for a timezone offset for a given locale.
Arguments
locale
is any locale returned byCldr.known_locale_names/0
Example
iex> Cldr.DateTime.Format.hour_format "en", MyApp.Cldr
{:ok, {"+HH:mm", "-HH:mm"}}