Cldr.DateTime.Formatter.zone_short

You're seeing just the function zone_short, go back to Cldr.DateTime.Formatter module for more information.
Link to this function

zone_short(zone_short, n \\ 1, options \\ [])

View Source

Specs

zone_short(Calendar.time(), integer(), Keyword.t()) ::
  String.t() | {:error, String.t()}

Returns the specific non-location format of a timezone (format symbol z) from a DateTime or Time.

Since Elixir does not provide full time zone support, we return here only the :time_zone element of the provided DateTime or other struct without any localization.

Arguments

Format Symbol

The representation of the timezone is made in accordance with the following table:

SymbolResultsDescription
z..zzz"UTC":zone_abbr key, unlocalised
zzzz"GMT"Delegates to zone_gmt/4

Examples

iex> Cldr.DateTime.Formatter.zone_short %{zone_abbr: "UTC",
...>   utc_offset: 0, std_offset: 0}, 1
"UTC"

iex> Cldr.DateTime.Formatter.zone_short %{zone_abbr: "UTC",
...>   utc_offset: 0, std_offset: 0}, 4
"GMT"
Link to this function

zone_short(time, n, locale, backend, options \\ [])

View Source

Specs

zone_short(Calendar.time(), integer(), locale(), Cldr.backend(), Keyword.t()) ::
  String.t() | {:error, String.t()}