From owner-freebsd-stable Fri Jan 21 7:38:16 2000 Delivered-To: freebsd-stable@freebsd.org Received: from sstar.com (sstar.com [209.102.160.1]) by hub.freebsd.org (Postfix) with ESMTP id 688AA15238 for ; Fri, 21 Jan 2000 07:38:11 -0800 (PST) (envelope-from king@sstar.com) Received: from JKING ([134.132.75.164]) by sstar.com with ESMTP (IPAD 2.52) id 6351400; Fri, 21 Jan 2000 09:38:05 -0600 Message-Id: <4.2.0.58.20000121093608.00a8b130@mail.sstar.com> X-Sender: king@mail.sstar.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Fri, 21 Jan 2000 09:38:06 -0600 To: Will Andrews , Per Kristian Hove From: Jim King Subject: Re: Y2K wierdness?? Cc: Marcin Cieslak , freebsd-stable@FreeBSD.ORG In-Reply-To: <20000118193532.J457@argon.blackdawn.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 07:35 PM 1/18/2000 -0500, Will Andrews wrote: >On Tue, Jan 18, 2000 at 11:17:47AM +0100, Per Kristian Hove wrote: > > Yes, either DOS or UNIX epoch. This output is from a really old backup, so > > I don't remember on which OS version[*] it's been made, but it goes to > > show that it's always been this way. > >DOS epoch == UNIX epoch. At least, in my tests of my code that uses >time_t, they both start on January 1, 1970 at 00:00 UTC. > >I used CodeWarrior Pro 2 + GCC 2.95.2. YMMV. > >(Not like this really matters anyhow.. ;-) DOS epoch == UNIX epoch from the point of view of a C program using the C RTL, but DOS's "native" epoch is 1/1/1980, and that's how you have to interpret dates in msdosfs directory entries. Jim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message