Unix epoch changed?

Jan Schlesner schlesner at physik.TU-Berlin.DE
Mon Apr 14 13:14:58 PDT 2003


On Mon, Apr 14, 2003 at 09:41:54AM +0200, Riccardo Torrini wrote:
> On Sun, Apr 13, 2003 at 02:29:48PM +0200, Jan Schlesner wrote:
> 
> >> Ok, I remember wrong.  But the question remain: why find -mtime -2
> >> show a file from 1906 (near 100 year ago) instead of 2 days old?
> 
> > Try to use "-mtime 2" instead of "-mtime -2". ;-)
> >                    ^                     ^^
> 
> It's not the same: positive_2 match file that are exactly 2 day old
> but where negative_2 match file old from 0 upto 2 day.  I need the
> second  :-(  And is documented, not a my invention...

Sorry, that was my faut. But the behavior looks like, that the binary
representation of -2 is interpreted as a nosign number. 

Jan
-- 
[ gpg key: http://wwwds.physik.tu-berlin.de/~jan/jschlesn.gpg ]
[ key fingerprint: 4236 3497 C4CF 4F3A 274F  B6E2 C4F6 B639 1DF4 CF0A ]
--
It's better to reign in hell,
	than to serve in heaven...


More information about the freebsd-current mailing list