Apple Mac和Unix时间戳 [英] Apple Mac and Unix timestamps

查看:199
本文介绍了Apple Mac和Unix时间戳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Apple系统上的主要时间戳是CF绝对时间值(也称为Mac绝对时间),它是一个32位整数,由自2001年1月1日00:00:00以来的秒数计算得出世界标准时间.例如,解码时的219216022是世界标准时间2007年12月13日星期四.

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.

Mac/Unix系统上是否还使用了其他时间戳(默认的Unix时间戳除外,它是自1970年1月1日00:00:00 UTC以来以秒计算的32位整数)?

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)?

推荐答案

是.正如@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.

这篇关于Apple Mac和Unix时间戳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆