Instance Property

timeIntervalSinceNow

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

Declaration

var timeIntervalSinceNow: TimeInterval { get }

Discussion

If the date is earlier than the current date and time, this property’s value is negative.

See Also

Getting Time Intervals

func timeIntervalSince(Date) -> TimeInterval

Returns the interval between the receiver and another given date.

var timeIntervalSinceReferenceDate: TimeInterval

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

var timeIntervalSince1970: TimeInterval

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

static var timeIntervalSinceReferenceDate: TimeInterval

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

static let timeIntervalBetween1970AndReferenceDate: TimeInterval

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