开发者

CSLogItem timestamp format (NSTimeInterval since when?)

开发者 https://www.devze.com 2023-01-25 05:26 出处:网络
I\'m logging CMAccelerometerData on the iphone. CMAcceleration is a subclass of CMLogItem, which defines a timestamp. The timestamp is very important to me, as I have to match CMAcceleration data to p

I'm logging CMAccelerometerData on the iphone. CMAcceleration is a subclass of CMLogItem, which defines a timestamp. The timestamp is very important to me, as I have to match CMAcceleration data to positions obtain via GPS. GPS gives me a NSDate object, which is good; but CMLogItem gives me a number that I cant relate to anything.

It's not UNIX ti开发者_运维百科me for sure. This morning (17/11/2010 at 11H17am, in Australia), it was at 4090 seconds.

Any ideas of what that could be?


Nevermind I found out, CMLogItem timestamp is a NSTimeInterval starting when the phone last boot up.

0

精彩评论

暂无评论...
验证码 换一张
取 消