首页 > 解决方案 > Android Timestamps vs Unix Timestamps

问题描述

sorry I don't have experience with Android. I have been using an app to record IMU data and I need timestamps since epoch in nanoseconds. The app generates cvs file that states

Timestamp[nanosec]
379575046451850
379575051336382 ...

However, I always have been familiar with the timestamp like this

timestamp
1602663595777087900
1602663595795272900

Both should be in nanoseconds. I am curious because two independent apps that record data generate timestamp in ns in the same format. How should I interpret the above data?

标签: androidtimestamp

解决方案


假设当前纪元时间是1604009999(10 位),这些可能是微秒(1/1,000,000 秒):379575046451850379575051336382(39 年前)。这些是纳秒(十亿分之一秒):16026635957770879001602663595795272900(16 天前)。不太确定以 开头的格式3795750,也许人们可以以不同的方式解释它们。这个问题并没有说明它们应该是什么意思,而且 39 年前还没有 Android。也许这是一个 Excel 时间戳?


推荐阅读