473,804 Members | 3,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6239
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******** ******@TK2MSFTN GP10.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
405
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 the least in case the user changes the system clock in purpose or inadvertently? - Network synchronization solutions in the network is manual I believe? - Web service based sync could work but will not if the user is off line. Any other...
8
1516
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 am having problems with negative latencies happening under intense CPU load. There is ntp sync happening so the machines should be very well in sync. Example: machine1 ----
1
2434
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 causes the sync to work. Seeking to position 0 before the sync doesn't seem to help. If you look at sync() as simply invalidating the read buffer (isn't that right?), isn't it illogical for it to fail in this situation? Besides sync()...
8
5390
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 following: C:\DB\TimNall>Gonna set time wrong - say to 8AM C:\DB\TimNall>time The current time is: 12:07:12.80 Enter the new time: 8:00:00
18
3271
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 function from kernel32 to accomplish this? My concern is that this function takes milliseconds where my program needs to be accurate to within 5 minuets, and delays may be as long as a number of days, months or whatever. Would I run into many problems...
7
8388
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
6253
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 is it was sometimes (randomically) returning a floating point value which was "less than" the value returned by the previous invokation. The computer was a pretty fast one (P4 3Ghz I think, running Windows XP), and this happened only between very...
3
4463
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 pro). The database has been used for a long time and we haven't upgraded it to a 2007 version database. 2. One of the PC's hosts the "master" database, the 2 others are using Replica's of "master" database. At the end of each work day, the...
8
3440
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
796
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 wants to change the appoinment times too. If you say NO then nothing happens - the time zone does not change - it just cancels the action. If you say YES then every appointment in your diary gets moved back or
0
9571
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10318
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.