How to determine if the system clock has been set back in time
From: David Lindgren (david.lindgren_at_hogia.se.REMOVE!)
Date: 02/24/04
- Next message: Travis 'Bailo' Bickel: "The New Linux Economy"
- Previous message: William Stacey [MVP]: "Re: Is 'Mutex' the only machine-wide sync mechanism?"
- Next in thread: Tom Williams: "Re: How to determine if the system clock has been set back in time"
- Reply: Tom Williams: "Re: How to determine if the system clock has been set back in time"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Feb 2004 08:57:50 +0100
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.
- Next message: Travis 'Bailo' Bickel: "The New Linux Economy"
- Previous message: William Stacey [MVP]: "Re: Is 'Mutex' the only machine-wide sync mechanism?"
- Next in thread: Tom Williams: "Re: How to determine if the system clock has been set back in time"
- Reply: Tom Williams: "Re: How to determine if the system clock has been set back in time"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|