init(timeInterval:since:)
Creates a date value initialized relative to another given date by a given number of seconds.
Declaration
init(timeInterval: TimeInterval, since date: Date)Parameters
- timeInterval:
The number of seconds to add to
date. A negative value means the receiver will be earlier thandate. - date:
The reference date.