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

Program independent of system dates

Status
Not open for further replies.

bingono1

Programmer
Joined
Dec 19, 2003
Messages
3
Location
KE
Am working on a project and urgently can do with assistance on how to come up with a program independent of system dates so that changing system dates does no interfere with my program.

 
If you provide us with a little more background on what you are trying to accomplish we may be able to assist more.

I suspect you are doing some type of transactional system where records are added by date/time and different computer have different times, but I could be off.

If this is true, and each pc has a different time, you can try to address the problem a few ways.

1. Work with the network gurus to ensure the pc time is set from the server. Novell is very good at handling that, NT is not quite as efficient.

2. Get the server time at startup, and create an offset (difference between server and computer time) and use that in your formula to make them all the same.

3. Try to get the most accurate time from the "atomic clock". You can do a google search on this subject. The best way to get the accurate time from the atomic clock would be a web-service. I have not seen one for this specific purpose, but I suspect someone has written one by now. Remember, the problem with using 3rd party web-services is that you're dependent on their server working and the web-service functioning properly.






Jim Osieczonek
Delta Business Group, LLC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top