Skip to content

Instance Method

secondsFromGMT(for:)

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
The current difference in seconds between the time zone and Greenwich Mean Time.
func secondsFromGMT(for date: Date = Date()) -> Int

Parameters

date

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