tai-time

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

What is the epoch of CLOCK_TAI?

▼魔方 西西 提交于 2019-12-21 17:38:02
问题 Since Linux kernel version 3.10, the function clock_gettime() now accept CLOCK_TAI . I didn't manage to find a detailed description of this clock. What is its epoch ? EDIT 1 : Just compared the output of CLOCK_REALTIME and CLOCK_TAI on my Linux 3.19 OS and it returns the exact same value (1442582497) !? Is CLOCK_REALTIME decremented at leap seconds ? EDIT 2 : According to this article, the difference between CLOCK_TAI and the (badly named) CLOCK_REALTIME should be the number of leap seconds.

How to obtain current TAI time?

只愿长相守 提交于 2019-12-06 00:15:42
问题 How can I obtain the current TAI time in milliseconds in Linux using either Java or C++? The reason I need this is to be able to accurately take timestamps over a long period of time (on the order of years) and still be able to compare them, without worrying about leap seconds. It is possible for multiple measurements to take place during a leap second and all measurements need to be unambiguous, monotonically increasing, and linearly increasing. This will be a dedicated Linux server. This is

How to get GPS Time and TAI time in Java?

为君一笑 提交于 2019-12-04 19:22:29
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. ) 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

How to obtain current TAI time?

江枫思渺然 提交于 2019-12-04 06:29:15
How can I obtain the current TAI time in milliseconds in Linux using either Java or C++? The reason I need this is to be able to accurately take timestamps over a long period of time (on the order of years) and still be able to compare them, without worrying about leap seconds. It is possible for multiple measurements to take place during a leap second and all measurements need to be unambiguous, monotonically increasing, and linearly increasing. This will be a dedicated Linux server. This is for a scientific project which needs precision of about .5 seconds. I do not currently wish to invest