<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSDate/dateWithTimeIntervalSinceNow:",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDate(cm)dateWithTimeIntervalSinceNow:"
  },
  "title" : "dateWithTimeIntervalSinceNow:"
}
-->

# dateWithTimeIntervalSinceNow:

Creates and returns a date object set to a given number of seconds from the current date and time.

```
+ (instancetype) dateWithTimeIntervalSinceNow:(NSTimeInterval) secs;
```

## Parameters

`secs`

The number of seconds from the current date and time for the new date. Use a negative value to specify a date before the current date.

## Return Value

An `NSDate` object set to `secs` seconds from the current date and time.

## See Also

[`convenience init(timeIntervalSinceNow: TimeInterval)`](/documentation/Foundation/NSDate/init(timeIntervalSinceNow:))

Returns a date object initialized relative to the current date and time by a given number of seconds.



---

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)