Contents

daylightSavingTimeOffset(for:)

Returns the daylight saving time offset for a given date.

Declaration

func daylightSavingTimeOffset(for date: Date = Date()) -> TimeInterval

Parameters

  • date:

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

See Also

Working with Daylight Savings