timeZone(_:)

Change the representation of the time zone in the format.

iOS
16.4+
macOS
13.3+
tvOS
16.4+
watchOS
9.4+
func timeZone(_ format: Date.FormatStyle.Symbol.TimeZone = .specificName(.short)) -> Date.FormatStyle.Attributed

Parameters

format

Set the symbol representation or pass nil to remove it.