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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Atomic Clock Question

Status
Not open for further replies.

BBousman

Programmer
May 10, 2004
57
US
I've looked through the posts and found little help on how to use VB.NET to change your system time to that of an Atomic Clock. I need to get the Atomic Time and then add 5 minutes to it. I saw someone had posted something about using Sockets but I've never used them so I have no clue how to go about this. Anyone have any ideas?

Thanks,
Brett
 
If your computer is a member of a domain, it will synchronize with the domain controller at login. The domain controller is presumably set up to get it's time from an authoriative source, like one from the list found at:


Note that you may need to get permission before pointing your server at some of these sites.

One question which I always ask people who are asking these sorts of questions: Do you really need nano-second accuracy? Or is having the time accurate to the nearest millisecond good enough?

Because if the answer is that you really do need this precision, you need to invest in some hardware that can grab time off the airwaves (GPS satellite, NIST radio, etc).

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
And it needs ntp which uses port 13 which must be open on the firewall. So open a socket on port 13 to one of those address and... You will have to ask for the current time which will be a few seconds of because it needs some nanoseconds to get to you.

Christiaan Baes
Belgium

"My new site" - Me
 
No I don't need that kind of percision, I just need it to be accurate. Let me be a little more specific. Our server is the one that's having the time trouble. We need it to be 5 minutes ahead of all the PC's in our office. Randomly after so long, it will go from being 5 minutes ahead to 6, 7, 8, etc. minutes ahead and will keep growing until you reset it back to 5 min. ahead. I want to write a program that will change the Server's system time back to 5 minutes ahead of the atomic time.
 
MMMM

If I remember correctly then kerberos (windows server 2000 and 2003) should deny access to it's clients when they have a time difference that is getting to big (I thought it was bigger then 5 minutes) but I could be wrong.

Christiaan Baes
Belgium

"My new site" - Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top