Skip to content

Operator

+(_:_:)

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
Returns a date with a specified amount of time added to it.
static func + (lhs: Date, rhs: TimeInterval) -> Date

Parameters

lhs

A date.

rhs

A TimeInterval to add to the date.

Return Value

A date with a specified amount of time added to it.