android - 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?
解决方案
假设当前纪元时间是1604009999
(10 位),这些可能是微秒(1/1,000,000 秒):379575046451850
,379575051336382
(39 年前)。这些是纳秒(十亿分之一秒):1602663595777087900
,1602663595795272900
(16 天前)。不太确定以 开头的格式3795750
,也许人们可以以不同的方式解释它们。这个问题并没有说明它们应该是什么意思,而且 39 年前还没有 Android。也许这是一个 Excel 时间戳?
推荐阅读
- apache-spark - 如何在 SparkMetrics 中按命名空间过滤输出中的指标?
- python - __str__ 已经返回 unicode 时出现 UnicodeEncodeError
- angular - Angular 5 以自定义格式导出 Excel
- python - 如何用熊猫按顺序标记编码多个类别(多行)?
- typescript - 如何定义“实现”接口的类型?
- java - Hikari CP 检测到明显的连接泄漏
- ios - iOS11出现键盘时UITableView将键盘高度添加到contentSize
- javascript - 基于光标位置的平移和缩放(在鼠标滚轮上)
- sql - Postgres SQL 在最近不到季度结束时加入
- java - 如何从 GWT 应用程序调用 J2ee 应用程序的方法?