473,408 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Time Sync

I have been attacked again by a dreaded feature creep.

My software needs to update the PC time w/ some internet based time
clock. Anyone know of a site that you can request the current time of?
Any one have sample code of doing this?

Thanks for any ideas.
Chris
Feb 20 '06 #1
2 6176
Chris wrote:
I have been attacked again by a dreaded feature creep.

My software needs to update the PC time w/ some internet based time
clock. Anyone know of a site that you can request the current time of?
Any one have sample code of doing this?

Thanks for any ideas.
Chris


Found what I needed. Just had to figure out I was looking for vb.net & NIST

http://www.codeproject.com/vb/net/daytime.asp

Thanks for those who were planning on helping me.
Chris
Feb 20 '06 #2
You would actually be better off using the built in (S)NTP client in Windows
2000 and later. In XP and 2003, it's directly accessible from the clock
applet. In 2000, you need to use w32tm. NT4 also has an SNTP client called
TimeSync that's available as part of the NT4 resource kit. Keeping the
system clock syncronized is an OS function, not an application function.

Mike Ober.
"Chris" <no@spam.com> wrote in message
news:ej**************@TK2MSFTNGP10.phx.gbl...
Chris wrote:
I have been attacked again by a dreaded feature creep.

My software needs to update the PC time w/ some internet based time
clock. Anyone know of a site that you can request the current time of?
Any one have sample code of doing this?

Thanks for any ideas.
Chris
Found what I needed. Just had to figure out I was looking for vb.net &

NIST
http://www.codeproject.com/vb/net/daytime.asp

Thanks for those who were planning on helping me.
Chris


Feb 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: arcvonz | last post by:
We have a time critical smart client application running on Windows 2000/XP systems. Is there any reliable service that would help in syncing the local system time to atomic clock or local time at...
8
by: kwharrigan | last post by:
I am working on some code using python and a distributed system. Some particular message is sent on one machine (with a timestamp logged) and after the message is received, a timestamp is made. I...
1
by: kartik | last post by:
I open an fstream in read-only mode, read till the end, then try to sync() before seeking to position 0 & reading again. But the sync fails. I discovered that clear()ing the stream before the sync...
8
by: MLH | last post by:
I have database apps that depend on accurate time settings on the system clock. Fancy that, huh? Well, am trying to sync w/ the gvt's nist time server. From a CMD window in Win XP, I type the...
18
by: Max | last post by:
This is a follow-up on my previous thread concerning having the program wait for a certain date and time and then executing some code when it gets there. My question is; can I use the Sleep...
7
by: mekim | last post by:
Hi All, is there a webservice for get the current time? I am looking to get the current time via a webservice and then set the time of the server. Regards, Mekim
18
by: Giovanni Bajo | last post by:
Hello, I experimented something very strange, a few days ago. I was debugging an application at a customer's site, and the problem turned out to be that time.clock() was going "backwards", that...
3
by: palepimp | last post by:
Hello all, I have searched far and wide for a solution to my issue. In short, here is the problem: 1. 3 PC's enter data into an Access 2003 database (PC's are running Vista w/ Office 2007...
8
by: ashore | last post by:
Folks, I need to find and synch some php scripts to a NTP service somewhere. I'll appreciate any info on just where/how? -AS
0
by: =?Utf-8?B?UmljaGFyZCBLaXJieQ==?= | last post by:
Hi, I have W Mobile 2003 SE v 4.21 on my O2 xda IIs PDA. Then I travel to a new time zone I would like to change the time on my PDA but each time it asks if you want to change the appoinment times...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.