Pacerier
Pacerier

Reputation: 89763

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. )

Upvotes: 2

Views: 1209

Answers (1)

Grooveek
Grooveek

Reputation: 10094

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

Upvotes: 2

Related Questions