Contents

identifier(_:)

Returns the timezone identifier.

Declaration

static func identifier(_ 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, uslax (Date.FormatStyle.Symbol.TimeZone.Width.short) or America/Los_Angeles (Date.FormatStyle.Symbol.TimeZone.Width.long).

See Also

Modifying a Time Zone