Instance Property

timeIntervalSince1970

The interval between the date object and 00:00:00 UTC on 1 January 1970.

Declaration

@property(readonly) NSTimeInterval timeIntervalSince1970;

Discussion

This property’s value is negative if the date object is earlier than 00:00:00 UTC on 1 January 1970.

See Also

Getting Time Intervals

- timeIntervalSinceDate:

Returns the interval between the receiver and another given date.

timeIntervalSinceNow

The interval between the date object and the current date and time.

timeIntervalSinceReferenceDate

The interval between the date object and 00:00:00 UTC on 1 January 2001.

timeIntervalSinceReferenceDate

The interval between 00:00:00 UTC on 1 January 2001 and the current date and time.

NSTimeIntervalSince1970

The number of seconds from 1 January 1970 to the reference date, 1 January 2001.