Instance Method

isDaylightSavingTime(for:)

Returns a Boolean value that indicates whether the receiver uses daylight saving time at a given date.

Declaration

func isDaylightSavingTime(for date: Date = Date()) -> Bool

Parameters

date

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

See Also

Working with Daylight Savings

func daylightSavingTimeOffset(for: Date) -> TimeInterval

Returns the daylight saving time offset for a given date.

var nextDaylightSavingTimeTransition: Date?

The date of the next (after the current instant) daylight saving time transition for the time zone.

func nextDaylightSavingTimeTransition(after: Date) -> Date?

Returns the next daylight saving time transition after a given date.