Instance Method
abbreviation(for:)
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.10+
tvOS 9.0+
watchOS 2.0+
Returns the abbreviation for the time zone at a given date.
func abbreviation(for date: Date = Date()) -> String?
Parameters
dateThe date to use for the calculation. The default value is the current date.
Discussion
Note that the abbreviation may be different at different dates. For example, during daylight saving time the US/Eastern time zone has an abbreviation of “EDT.” At other times, its abbreviation is “EST.”