Apple Mac 和 Unix 时间戳
我知道Apple系统上的主要时间戳是CF绝对时间值(也称为Mac绝对时间),它是根据自01/01/2001 00:00:00 UTC以来的秒数计算的32位整数。例如,219216022 解码后为 Thu, 13 December 2007 05:20:22 UTC。
Mac/Unix 系统上是否使用了任何其他时间戳(除了默认的 Unix 时间戳,它是自 01/01/1970 00:00:00 UTC 以来以秒为单位计算的 32 位整数)?
I know that the primary timestamp on Apple systems is the CF Absolute Time value (also called Mac Absolute Time), which is a 32-bit integer calculated by the number of seconds since 01/01/2001 00:00:00 UTC. For example, 219216022 when decoded is Thu, 13 December 2007 05:20:22 UTC.
Are there any other timestamps used on Mac/Unix systems (other than the default Unix timestamp which is a 32-bit integer calculated in seconds since 01/01/1970 00:00:00 UTC)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
NSDate 对象具有 timeIntervalSince1970,但这是基于马赫时间的。含义
[[NSDate date] timeIntervalSince1970]-NSTimeIntervalSince1970
等于[NSDate timeIntervalSinceReferenceDate];
The NSDate object has timeIntervalSince1970, but that's based off the mach time. Meaning
[[NSDate date] timeIntervalSince1970]-NSTimeIntervalSince1970
is equal to[NSDate timeIntervalSinceReferenceDate];
是的。正如 @MarcusJ 所指出的,AIFF 规范 有一个 32 位二进制时间戳, Amiga 是自 1978 年 1 月 1 日以来的秒数,在 Mac 上是自 1904 年 1 月 1 日以来的秒数。
Yes. As pointed out by @MarcusJ, the the AIFF Specification has a 32-bit binary timestamp that on the Amiga is the number of seconds since January 1, 1978, and on the Mac is the number of seconds since January 1, 1904.