Deprecated NSDate Methods

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

Deprecated in Mac 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 Mac 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
See Also
Declared In
NSDate.h


© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-08-17)