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

Connecting to a Time Server

Status
Not open for further replies.
Mar 13, 2005
32
US
Hello,

I'm working on a time clock application that I want to keep perfect time - does anyone know a good way to connect to a time server via the application?

Thanks for any help!
 
I beleive there is a way to use a service in 2K/XP to update the clock based on a network time server. I can't recall the name of it at the moment, I just remember having to disable it so I could change my workstation's time to run historical reports.

If you are talking about getting the time off of an official time server on the internetnet, you could probrably use a web request on their web page. It won't be perfect becuase you'll have the transfer lag, but it would be close.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
If your computer is a member of an ActiveDirectory domain, you can configure the domain controller to get time from time.microsoft.com (or any other NTP time server to which you have permission). You do this via the net time command to tell the server where to look.

Once your desktop PC (or any other member of the domain) logs in, it's clock will be automatically set.

Chip H.


____________________________________________________________________
Donate to Katrina relief:
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