Type Method

dateWithTimeIntervalSinceReferenceDate:

Creates and returns a date object set to a given number of seconds from 00:00:00 UTC on 1 January 2001.

Declaration

+ (instancetype)dateWithTimeIntervalSinceReferenceDate:(NSTimeInterval)ti;

Parameters

seconds

The number of seconds from the absolute reference date (00:00:00 UTC on 1 January 2001) for the new date. Use a negative argument to specify a date and time before the reference date.

Return Value

An NSDate object set to seconds seconds from the absolute reference date.

See Also

Creating a Date

+ date

Creates and returns a new date object set to the current date and time.

+ dateWithTimeIntervalSinceNow:

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

+ dateWithTimeInterval:sinceDate:

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

+ dateWithTimeIntervalSince1970:

Creates and returns a date object set to the given number of seconds from 00:00:00 UTC on 1 January 1970.