Type Alias
TimeInterval
A number of seconds.
秒数
Declaration
typealias TimeInterval = Double
Discussion
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.
最后
以上就是时尚棒球最近收集整理的关于20200714--iOS之TimeInterval类型别名,表示时间戳间隔的Double别名TimeInterval的全部内容,更多相关20200714--iOS之TimeInterval类型别名,表示时间戳间隔内容请搜索靠谱客的其他文章。
发表评论 取消回复