Apple Mac and Unix timestamps

后端 未结 2 1638
闹比i
闹比i 2021-01-24 06:04

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 s

相关标签:
2条回答
  • 2021-01-24 06:22

    The NSDate object has timeIntervalSince1970, but that's based off the mach time. Meaning [[NSDate date] timeIntervalSince1970]-NSTimeIntervalSince1970 is equal to [NSDate timeIntervalSinceReferenceDate];

    0 讨论(0)
  • 2021-01-24 06:39

    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.

    0 讨论(0)
提交回复
热议问题