Contents

specificName(_:)

Returns the specific, non-location representation of a timezone.

Declaration

static func specificName(_ 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

The value falls back to the value of localizedGMT(_:) with a short width if unavailable. For example, PDT (Date.FormatStyle.Symbol.TimeZone.Width.short), or Pacific Daylight Time (Date.FormatStyle.Symbol.TimeZone.Width.long).

See Also

Modifying a Time Zone