---
title: "addTimeInterval(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsdate/addtimeinterval(_:)"
---

# addTimeInterval(_:)

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

## Declaration

```swift
func addTimeInterval(_ seconds: TimeInterval) -> Any
```

## 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

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

### Related Documentation

- [addingTimeInterval(_:)](foundation/nsdate/addingtimeinterval(_:).md)
- [timeIntervalSince(_:)](foundation/nsdate/timeintervalsince(_:).md)

### Legacy Operations

- [date(withNaturalLanguageString:)](foundation/nsdate/date(withnaturallanguagestring:).md)
- [date(withNaturalLanguageString:locale:)](foundation/nsdate/date(withnaturallanguagestring:locale:).md)
- [date(with:)](foundation/nsdate/date(with:).md)
- [init(string:)](foundation/nsdate/init(string:).md)
- [date(withCalendarFormat:timeZone:)](foundation/nsdate/date(withcalendarformat:timezone:).md)
- [description(withCalendarFormat:timeZone:locale:)](foundation/nsdate/description(withcalendarformat:timezone:locale:).md)
