Deprecated NSDate Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in OS X v10.6

addTimeInterval:

Returns a new NSDate object that is set to a given number of seconds relative to the receiver. (Deprecated in OS X v10.6. This method has been replaced by dateByAddingTimeInterval:.)

- (id)addTimeInterval:(NSTimeInterval)seconds
Parameters
seconds

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.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.6.
Declared In
NSDate.h