PC Review


Reply
Thread Tools Rate Thread

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

 
 
David Lindgren
Guest
Posts: n/a
 
      24th Feb 2004
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.


 
Reply With Quote
 
 
 
 
Tom Williams
Guest
Posts: n/a
 
      24th Feb 2004
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.


 
Reply With Quote
 
David Lindgren
Guest
Posts: n/a
 
      25th Feb 2004
Unfortunately I cannot do that since it would mean that internet access is
required.

/David.

"Tom Williams" <(E-Mail Removed)> skrev i meddelandet
news:(E-Mail Removed)...
> 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.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CMOS time, system time, taskbar clock, all screwy needlove Windows XP Help 4 29th Mar 2007 02:15 PM
My clock is now setting back one hour all the time ... StargateFanFromWork Windows XP Basics 5 27th Mar 2007 10:09 PM
My time clock keeps reverting back to China Time where I buy my co =?Utf-8?B?UGhvbmVmbGFzaGVyLmNvbQ==?= Microsoft Outlook Calendar 1 23rd Oct 2006 04:42 AM
Error : System clock appears to have been set back.... ali6236 Windows XP Security 0 6th Aug 2003 10:22 AM
system clock roll back martin Windows XP Basics 1 7th Jul 2003 08:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:52 PM.