Instance Method

addTimeInterval:

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

Declaration

- (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.

See Also

Legacy Operations

+ dateWithNaturalLanguageString:

Creates and returns a date object set to the date and time specified by a given string.

Deprecated
+ dateWithNaturalLanguageString:locale:

Creates and returns a date object set to the date and time specified by a given string.

Deprecated
+ dateWithString:

Creates and returns a date object with a date and time value specified by a given string in the international string representation format (YYYY-MM-DD HH:MM:SS ±HHMM).

Deprecated
- initWithString:

Returns a date object initialized with a date and time value specified by a given string in the international string representation format.

Deprecated
- dateWithCalendarFormat:timeZone:

Converts the receiver to a calendar date with a given format string and time zone.

Deprecated
- descriptionWithCalendarFormat:timeZone:locale:

Returns a string representation of the date formatted as specified by given conversion specifiers.

Deprecated