find(1) question about mtime

bill vermillion bill at bilver.UUCP
Thu Apr 6 11:40:30 AEST 1989


In article <976 at n8emr.UUCP> lwv at n8emr.UUCP (Larry W. Virden) writes:
>
>I am using find on both Ultrix 2.3 and SunOS 4.0.1 on a 386i.  I have
>a file whose ls -l date (documented as the modification time) is
>April 1, 1989 at 9:09 am.  On my machine, it is after 10am on April 3.
>I run find filename -mtime +1 -print.  My file's name does not appear.
>I run find filename -mtime 1 -print.  My file's name DOES appear.
>
>Note that it is more than 48 hours after the modification time.  Why does
>find insist that the mtime is only 1 day old?
>

It's relatively simple - from the way I see it.  Your file is less
than 48 hours old.

All files times are stored in GMT - (or UCT now).  From 909am April 1,
that should be 1409 GMT.   10am on April 3 should be 1400 GMT.  

GMT did NOT change at 2am Sunday, but your computer went from EST to
EDT.  Thus 10am Monday is only 47 hours and 50 minutes later than
910AM saturday.
 
Just a stroke of timing.  If you had waited another 10 or 15 minutes
you probably wouldn't have seen it.
-- 
Bill Vermillion - UUCP: {uiucuxc,hoptoad,petsd}!peora!rtmvax!bilver!bill
                      : bill at bilver.UUCP



More information about the Comp.unix.questions mailing list