How to get GPS Time and TAI time in Java?

馋奶兔 提交于 2019-12-21 21:53:48

问题


Is there a way to get the current GPS time and TAI time?

( System.currentTimeMillis()'s return value is POSIX time, which isn't a linear representation of time. )


回答1:


Your option is to look at the ThreeTen project, which is the reference implementation of the JSR-310 (new Java Date and Time spec). You can find a TAIInstant class in the javadocs

It's claimed to be still in alpha, though



来源:https://stackoverflow.com/questions/8849553/how-to-get-gps-time-and-tai-time-in-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!