in reply to Re: Perl reading clock changes
in thread Perl reading clock changes
then when you need to see if clock has been set back:# snippet... open(TIMELOG,">timelog.txt") || die $!; print TIMELOG time; close(TIMELOG);
.02open(TIMELOG,"<timelog.txt") || die $!; my $stored_time = <TIMELOG>; close(TIMELOG); if (time < $stored_time) { ... do something because time now is earlier than stored }
cLive ;-)
|
|---|