Skip to content

Instance Method

isDaylightSavingTime(for:)

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
Returns a Boolean value that indicates whether the receiver uses daylight saving time at a given date.
func isDaylightSavingTime(for date: Date = Date()) -> Bool

Parameters

date

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