Questions tagged [tai-time]

8 questions
10
votes
4 answers

How to obtain current TAI time?

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…
Daniel Centore
  • 3,220
  • 1
  • 18
  • 39
6
votes
2 answers

How to get International Atomic Time in Java 7

I am working on a Java7 project, and we need a timestamp in International Atomic Time. I've found a few other questions relating to this that point to JSR-310 and ThreeTen Project (which is implementing JSR-310): How to get GPS Time and TAI time in…
asibs
  • 243
  • 6
  • 14
5
votes
1 answer

What is the epoch of CLOCK_TAI?

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…
chmike
  • 20,922
  • 21
  • 83
  • 106
3
votes
1 answer

Finding the number of TAI seconds since 00:00:00 UTC, 1 January, 2004 in Java

As the title states, I'm required to find the number of TAI seconds since 00:00:00 UTC, January 1st, 2004 (in Java). I've just recently learned what TAI is and my attempts at working out the above have left me a bit confused. What I've tried: I know…
Paul Warnick
  • 903
  • 2
  • 13
  • 26
2
votes
1 answer

How to get GPS Time and TAI time in Java?

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. )
Pacerier
  • 86,231
  • 106
  • 366
  • 634
1
vote
0 answers

TAI time from String with date time representation

In my Java task I get some timestamps in Strings in the format of: YYYY-MM-ddTHH:mm:ss.S. These timestamps are supposed to be interpreted as TAI time (International atomic time). I need to compare these timestamps to others, some of which might be…
gumitmu
  • 11
  • 2
1
vote
1 answer

Why was UTC initially defined as being 10 seconds offset from TAI

From http://derickrethans.nl/leap-seconds-and-what-to-do-with-them.html UTC was defined (in the latest adjustment of its definition) as being 10 seconds different from TAI making 1972-01-01T00:00:00 UTC and 1972-01-01T00:00:10 TAI the same…
Ed Griffin
  • 456
  • 5
  • 14
0
votes
2 answers

Converting TAI time to a Java Instant

I have access to TAI time with seconds and nano seconds - let me just called this T. I want to now create a java Instant class corresponding to this value T. I've looked for the appropriate constructors to do this but no luck.