我是靠谱客的博主 时尚棒球,这篇文章主要介绍20200714--iOS之TimeInterval类型别名,表示时间戳间隔的Double别名TimeInterval,现在分享给大家,希望可以做个参考。

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类型别名,表示时间戳间隔内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(122)

评论列表共有 0 条评论

立即
投稿
返回
顶部