Type Alias


A number of seconds.


typealias TimeInterval = Double


A TimeInterval value is always specified in seconds; it yields sub-millisecond precision over a range of 10,000 years.

On its own, a time interval does not specify a unique point in time, or even a span between specific times. Combining a time interval with one or more known reference points yields a Date or DateInterval value.

See Also

Date Representations

struct Date

A specific point in time, independent of any calendar or time zone.

struct DateInterval

The span of time between a specific start date and end date.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software