HP/UX Java 1.3.1.02 date/time differences

From: Steffen Huebner (hueb_s_at_gmx.de)
Date: 04/30/04


Date: 30 Apr 2004 05:36:33 -0700

Hi!

We seem to have differences between the unix system time (coming from
an NTP server) and the time our java application has (as it produces
timestamps).
At the start of the app the time is synchro and after about 2 weeks
the time is 20secs ahead of the system time...

Does the Java VM calculates the current time by its own (i.e. counting
secs from start)? Or should it better get the time (if
System.currentTimeMillis() is called) from the host system?

Regards,
Steffen



Relevant Pages

  • Re: HP/UX Java 1.3.1.02 date/time differences
    ... Keep your machines is sync by having them check in with an NTP server. ... Modern tick clocks are pretty ... See http://mindprod.com/jgloss/jgloss.html for The Java Glossary. ...
    (comp.lang.java.programmer)
  • Re: Confused about Date
    ... I think the essence of your problem is that Java Dates are neither ... They are TIMESTAMPS -- a combined date/time ... FAQish topics, links, acronyms ...
    (comp.lang.java.programmer)
  • Re: requesting ntp time
    ... > I want to get the time off an ntp server using java. ... > to get the offset between my clock and the ntp clock. ... > the exact time off the ntp server at that moment in time. ...
    (comp.lang.java.help)
  • Re: Date addition
    ... Java has timestamps, but they are very awkward for pure dates that ... The Java Glossary, http://mindprod.com ...
    (comp.lang.java.programmer)
  • requesting ntp time
    ... I want to get the time off an ntp server using java. ... get the offset between my clock and the ntp clock. ...
    (comp.lang.java.help)