A number of seconds.
SDKs
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
typealias TimeInterval = Double
Discussion
A Time
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 Date
value.