This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes General Computing and the fly likes OS Clock Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "OS Clock" Watch "OS Clock" New topic
Author

OS Clock

Davie Lin
Ranch Hand

Joined: Aug 05, 2007
Posts: 294
Hi Guys, I am using Win XP and it runs our app. Our app is written in Java. I know that Java take the OS clock and our app display the time. However, I notice some of our XP pc's clock is like a couple minutes fast. I was wondering if XP offer some sort of self-correct mechnism or is there some option in XP that we can set for it to self-correct the time.

Please if anyone know if XP has issue with clock or anything, it would be great if someone can post something here.

Thank you
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I used to have XP and I remember that it had the option to connect to an Internet time source periodically, and synchronize the computer's clock with that. I don't have any XP computers any more but I think it was the Date/Time control from the Control Panel where you did that.
Davie Lin
Ranch Hand

Joined: Aug 05, 2007
Posts: 294
I just follow your suggestions but the only check box I saw for for adjusting Day light savings, not quite what I wanted
but thanks anyways,
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

It might have been somewhere else in the control panel, as I said I don't have XP any more. So (in particular) I can't poke around in other options looking for it, whereas you still do have XP so you could.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

This document should help: http://tf.nist.gov/service/pdf/win2000xp.pdf

Seems that in XP you need to enter a command line:



where XXX is the IP address of one of the servers mentioned in the above document.


JBoss In Action
Sergey Babkin
author
Ranch Hand

Joined: Apr 05, 2010
Posts: 50
To keep the time synchronized, you need to run the NTP synchronization. On Unix that would be "ntpd", I'm not sure about Windows.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OS Clock
 
Similar Threads
Clock
System.getProperty("os.name") and compatibility modes with new Windows OS's
DistributedMap setTimeToLive API-Can it be configured in App Server console on JNDI resource
currentTimeMillis() returning wrong value ?
auto deploy and change to DST time