abbreviation(for:)
Returns the abbreviation for the time zone at a given date.
Declaration
func abbreviation(for date: Date = Date()) -> String?Parameters
- date:
The 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.”