Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting System to Atomic Time

Status
Not open for further replies.

johncasimir

Programmer
Jan 13, 2003
14
US
Does anyone know a method to set an internal clock to atomic time?. Code could be in C++ or VB.
Thanks
John
 
You can take a look at the US Navy clock site -- they have a number of time-related utility programs available.


You can also check the homepage of the Network Time Protocol organization:


Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Gentlemen. Thanks for the Links. However i'm looking for some code which i can use in an app to be able to use an avaliable atomic time over the web instead of the computer's system time. Any one know any code for that>
Thanks

 
I think chiph was hoping you might look at his second link, which provides the complete protocol for communicating with atomic clocks on the Internet
 
SNTP is much more involved than people think. You'll want to find a strata-2 or -3 machine to talk to. Don't try and talk to a strata-0 machine -- those are the master clocks for the entire internet, and they don't want ordinary people taking up their CPU cycles (which is why the load is distributed out to the higher-numbered strata).

Microsoft & Apple both run time servers that you can connect to.
time.windows.com
time.apple.com

You might also want to read:

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top