<!--
{
  "availability" : [
    "iOS: 2.0.0 - 4.0.0",
    "iPadOS: 2.0.0 - 4.0.0",
    "tvOS: 9.0.0 - 9.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 2.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSDate/addTimeInterval(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDate(im)addTimeInterval:"
  },
  "title" : "addTimeInterval(_:)"
}
-->

# addTimeInterval(_:)

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

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

A new [`NSDate`](/documentation/Foundation/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

[`-  dateByAddingTimeInterval:`](/documentation/Foundation/NSDate/addingTimeInterval(_:))

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

[`-  timeIntervalSinceDate:`](/documentation/Foundation/NSDate/timeIntervalSince(_:))

Returns the interval between the receiver and another given date.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)