From owner-freebsd-chat Sat Jan 8 4:55: 7 2000 Delivered-To: freebsd-chat@freebsd.org Received: from mercury.gfit.net (ns.gfit.net [209.41.124.90]) by hub.freebsd.org (Postfix) with ESMTP id AB1CF14CF1 for ; Sat, 8 Jan 2000 04:55:04 -0800 (PST) (envelope-from tom@embt.com) Received: from PARANOR (timembt.iinc.com [206.67.169.229]) by mercury.gfit.net (8.8.8/8.8.8) with SMTP id HAA02410; Sat, 8 Jan 2000 07:02:39 -0600 (CST) (envelope-from tom@embt.com) Message-Id: <3.0.3.32.20000108075449.015f6168@mail.embt.com> X-Sender: tembt@mail.embt.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Sat, 08 Jan 2000 07:54:49 -0500 To: cjclark@home.com From: Tom Embt Subject: Re: I will never trust NBC news again! Cc: chat@FreeBSD.ORG In-Reply-To: <200001061527.KAA19932@cc942873-a.ewndsr1.nj.home.com> References: <3.0.3.32.20000106081108.015a8e68@mail.embt.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [snip] >> > >> >ITYM, "Armageddon." And I thought it was at, >> > >> >% date -ur 2147483647 >> >Tue Jan 19 03:14:07 GMT 2038 >> >-- >> >Crist J. Clark cjclark@home.com >> > >> >> It would be Armageddon for ankone who is still using a 32bit OS at that >> time, otherwise it's just a big "rollover" when we start using the next >> bit. At least, it sounds good to me.. > >Being a 32-bit OS really has nothing directly to do with it. You can >easily write code to handle arbitrarily large numbers. The origin of a >32-bit counter is the same as the mythical Y2k bug. Thirty-two bits >seemed big enough at the time (almost 70 years after all), memory was >at a premium, and it was just kinda convenient. > >What it takes to fix this is that every program that assumes time_t >to be a four-byte int needs to be fixed so that it makes no >assumptions about time_t other than it is an integer-type. Once that >is done, a 32-bit, 64-bit, 16-bit, or 12-bit OS will all be happy with >a counter of whatever size we want. Quite right. I mis-thought. >> BTW, I *think* it would be 2^31-1 not 2^31. For example, doesn't a char >> store values from -128 to 127 ? > >Yes and yes. But, > > ( (2^31 - 1) == 2147483647 ) > >That is what I had. And just for date(1) trivia buffs, note that, > >% date -ur -2147483648 >Fri Dec 13 20:45:52 GMT 1901 >-- >Crist J. Clark cjclark@home.com > > Now here I'm having a problem. I can't seem to figure out how I came up with the 3:14:06 time. Maybe I just mistyped something. Cheers, Tom Embt tom@embt.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message