Skip to content

Instance Method

nextDaylightSavingTimeTransition(after:)

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
Returns the next daylight saving time transition after a given date.
func nextDaylightSavingTimeTransition(after date: Date) -> Date?

Parameters

date

A date.

Return Value

The next daylight saving time transition after date. Depending on the time zone, this function may return a change of the time zone’s offset from GMT. Returns nil if the time zone of the receiver does not observe daylight savings time as of date.