identifier(_:)
Returns the timezone identifier.
Declaration
static func identifier(_ width: Date.FormatStyle.Symbol.TimeZone.Width) -> Date.FormatStyle.Symbol.TimeZoneParameters
- 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).