Instance Method

secondsFromGMT(for:)

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

Declaration

func secondsFromGMT(for date: Date = Date()) -> Int

Parameters

date

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

See Also

Getting Time Zone Information

var identifier: String

The geopolitical region identifier that identifies the time zone.

func abbreviation(for: Date) -> String?

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

static var timeZoneDataVersion: String

Returns the time zone data version.