Apple Mac and Unix timestamps

后端 未结 2 1637
闹比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];

提交回复
热议问题