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