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

# addingTimeInterval(_:)

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

## Declaration

```swift
func addingTimeInterval(_ ti: TimeInterval) -> Self
```

## Parameters

- `ti`: 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

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