Deprecated NSDate Methods
A method identified as deprecated has been superseded and may become unsupported in the future.
Deprecated in iOS 4.0
addTimeInterval:
Returns a new NSDate object that is set to a given number of seconds relative to the receiver. (Deprecated in iOS 4.0. 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 iOS 2.0 and later.
- Deprecated in iOS 4.0.
Declared In
NSDate.h© 2013 Apple Inc. All Rights Reserved. (Last updated: 2013-04-23)