473,396 Members | 1,859 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,396 software developers and data experts.

How to determine if the system clock has been set back in time

Hello.

I am trying to figure out a way to determine if the user has resetted the
system clock between two times of running my application. One idea I have is
that I could check the modified date of a system file which I "know" is
changed regulary (every day) and compare that to the current time. If the
modified date is later than current time the system clock has probably been
reset.
Is this a good way to find out about user resetting the clock or are there
other (better) ways to do this? Also, anyone have a good idea of which file
I could look at when comparing time?

Thank you for helping out.

/David.
Jul 21 '05 #1
2 6111
Could you get the time from a server? Or maybe you could just call a web
service somewhere that would return the time.
David Lindgren wrote:
Hello.

I am trying to figure out a way to determine if the user has resetted the
system clock between two times of running my application. One idea I have is
that I could check the modified date of a system file which I "know" is
changed regulary (every day) and compare that to the current time. If the
modified date is later than current time the system clock has probably been
reset.
Is this a good way to find out about user resetting the clock or are there
other (better) ways to do this? Also, anyone have a good idea of which file
I could look at when comparing time?

Thank you for helping out.

/David.


--
E-mail correspondence to and from this address may be subject to the
North Carolina Public Records Law and may be disclosed to third parties.
Jul 21 '05 #2
Unfortunately I cannot do that since it would mean that internet access is
required.

/David.

"Tom Williams" <To**********@SPAMMENOTncmail.net> skrev i meddelandet
news:40***************@SPAMMENOTncmail.net...
Could you get the time from a server? Or maybe you could just call a web
service somewhere that would return the time.
David Lindgren wrote:
Hello.

I am trying to figure out a way to determine if the user has resetted the system clock between two times of running my application. One idea I have is that I could check the modified date of a system file which I "know" is
changed regulary (every day) and compare that to the current time. If the modified date is later than current time the system clock has probably been reset.
Is this a good way to find out about user resetting the clock or are there other (better) ways to do this? Also, anyone have a good idea of which file I could look at when comparing time?

Thank you for helping out.

/David.


--
E-mail correspondence to and from this address may be subject to the
North Carolina Public Records Law and may be disclosed to third parties.

Jul 21 '05 #3

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

Similar topics

7
by: Valiz | last post by:
Hi, I am updating system time with IRIG time source which sends irregular pulses as shown below 11000011111100111111111111111111....(1-IRIG present and 0-IRIG not present) I need to update...
3
by: James Harriman | last post by:
Hi, I need to be able to measure a time interval in milliseconds on a windows machine. I have tried using time.clock() but it appears to measure time in seconds...Is there a way to measure time...
2
by: p175 | last post by:
People, I have an ESE 8.2.2 database running on win2k server . I need to do some system testing that requires I reset the dates back a couple of years then progressivily move it forward to...
2
by: David Lindgren | last post by:
Hello. I am trying to figure out a way to determine if the user has resetted the system clock between two times of running my application. One idea I have is that I could check the modified date...
4
by: Shawn Yates | last post by:
I am fairly new to MS Access and VB but thanks to many of the posts on this site I have found solutions to my problems. I have been searching all day, however, for an answer to my current problem...
3
by: Carlos Lozano | last post by:
I have requirement to pause the system clock until a certain event (Win XP). Then the clock will be resumed to the real time. I think it can be done using core functions and/or redirecting the...
8
by: rdemyan via AccessMonster.com | last post by:
Anyone have any ideas on how to determine when the back-end file (containing only tables) has been updated with new data. The date/time of the file won't work because it gets updated to the...
7
by: Daz | last post by:
Hi everyone. I am trying to find out how I can create a real time clock, which knows when to set itself backwards or forwards 1 hour. The clock will work for various timezones. Some of which...
5
by: Charles May | last post by:
Anyone have a simple concept for the best way to store timeclock information in a database. I currently have my table set up like this with a typical daily entry. tcID empID Type ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.