---
title: "dateWithTimeIntervalSinceNow:"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nsdate/datewithtimeintervalsincenow:"
---

# dateWithTimeIntervalSinceNow:

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

## Declaration

```occ
+ (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

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

## See Also

### Related Documentation

- [init(timeIntervalSinceNow:)](foundation/nsdate/init(timeintervalsincenow:).md)

### Creating a Date

- [date](foundation/nsdate/date.md)
- [dateWithTimeIntervalSinceReferenceDate:](foundation/nsdate/datewithtimeintervalsincereferencedate:.md)
- [dateWithTimeIntervalSince1970:](foundation/nsdate/datewithtimeintervalsince1970:.md)
