Contents

localizedGMT(_:)

Returns the localized GMT format representation of a timezone.

Declaration

static func localizedGMT(_ width: Date.FormatStyle.Symbol.TimeZone.Width) -> Date.FormatStyle.Symbol.TimeZone

Parameters

  • width:

    Specifies the width of the string result.

Return Value

A timezone format style appropriate for the locale and specified width.

Discussion

For example, GMT-7 (Date.FormatStyle.Symbol.TimeZone.Width.short) or GMT-07:00 (Date.FormatStyle.Symbol.TimeZone.Width.long).

See Also

Modifying a Time Zone