Instance Method


Returns a new date object that is set to a given number of seconds relative to the receiver.


func addingTimeInterval(_ ti: TimeInterval) -> Self



The number of seconds to add to the receiver. Use a negative value for seconds to have the returned object specify a date before the receiver.

Return Value

A new NSDate object that is set to seconds seconds relative to the receiver. The date returned might have a representation different from the receiver’s.

See Also

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software