Contents

addingTimeInterval(_:)

Creates a new date value by adding a time interval to this date.

Declaration

func addingTimeInterval(_ timeInterval: TimeInterval) -> Date

Parameters

  • timeInterval:

    The value to add, in seconds.

Return Value

A new date value calculated by adding a time interval to this date.

Discussion

See Also

Adding or Subtracting a Time Interval