Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Apr 2003 14:29:48 +0200
From:      Jan Schlesner <schlesner@physik.TU-Berlin.DE>
To:        freebsd-current@freebsd.org
Subject:   Re: Unix epoch changed?
Message-ID:  <20030413122948.GA42211@physik.TU-Berlin.DE>
In-Reply-To: <20030409123257.GA3598@trudy.torrini.home>
References:  <200304091025.LAA13913@sorley.cogsci.ed.ac.uk> <20030409123257.GA3598@trudy.torrini.home>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi.

On Wed, Apr 09, 2003 at 02:32:57PM +0200, Riccardo Torrini wrote:
> On Wed, Apr 09, 2003 at 11:25:00AM +0100, Richard Tobin wrote:
> 
> >> I'm trying to figure how a file can have a date _before_ unix epoch.
> 
> > It's a signed value.
> > It runs from -2^31 (13 Dec 1901) to 2^31-1 (19 Jan 2038) with 0
> > (1 Jan 1970) in the middle.
> 
> 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". ;-)
                   ^                     ^^
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...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030413122948.GA42211>