Time discrepancy between java and native

G

Gopal

Hi,

I am having a embedded system running on Linux. I am having a strange
problem with time between java world and native system. Java time is
22 seconds ahead of native time.
When I see the time in second from epoch time both native and java
world matches. But I display the time as string java time is 22sec
more than native time.
Do anyone have anyclue, why would this happen?

Gopal
 
H

Harald Hein

Gopal said:
Do anyone have anyclue, why would this happen?

Just a guess. Check how you have configured the Linux system. Are you
using the posix time zone definition? Do you use or ignore leap
seconds?
 
G

Gopal

Harald Hein said:
Just a guess. Check how you have configured the Linux system. Are you
using the posix time zone definition? Do you use or ignore leap
seconds?

How can I check whether I am using or ignoring leap seconds?

Gopal
 
P

Phil...

maybe you are referring to a different object from what you think you are
what does your code look like
 
D

Dario

Gopal said:
I am having a embedded system running on Linux. I am having a strange
problem with time between java world and native system. Java time is
22 seconds ahead of native time.

Here 22 is magic!

Because since the first leap second in 1972, all leap seconds have been
positive and there were 22 leap seconds in the 27 years to January,
1999. This pattern reflects the general slowing trend of the Earth
due to tidal braking.

See http://tycho.usno.navy.mil/leapsec.html

- Dario
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top