Instance Method


Returns the abbreviation for the time zone at a given date.


func abbreviation(for date: Date = Date()) -> String?



The date to use for the calculation. The default value is the current date.


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.”

See Also

Getting Time Zone Information

var identifier: String

The geopolitical region identifier that identifies the time zone.

func secondsFromGMT(for: Date) -> Int

The current difference in seconds between the time zone and Greenwich Mean Time.

static var timeZoneDataVersion: String

Returns the time zone data version.