🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bc.unix
Article #752

Re: Year 2000 problem!

#752
From: brad
Date: Fri, 21 Jun 1996 00:00
46 lines
1997 bytes
Brian Hampson writes
>Curt Sampson (curt@cynic.portal.ca) wrote:
>
>: >UNIX is scheduled to run out of "time", as it stands in 2038.  However, 
>: >that gives people a bit of time to work around it.  The C programming 
>: >language neatly gets around an integer time problem by saying that time_t 
>: >is a constantly increasing value...It is NOT guaranteed to be an int or a 
>: >long int...just ever-growing.  
>
>: There's not much to `getting around it'; UNIX itself does most of
>: its date work in type time_t, so just increasing it from 32 to 64
>: bits will do the trick quite nicely for some time to come. It can't
>: hurt any more than moving some of the inode stuff to 64 bits,
>: really....
>
>True, although on our UNIX system there is a 
>
>#define time_t int
>
>or some such...they'll have to do something about that <grin>, but for 
>the most part...shouldn't be a problem, unless you have people writing 2 
>digit dates still.  (Are there people that ACTUALLY still do this????)
>
>Cheers,
>
>B.

     time_t time(time_t *tloc);

     Time returns the value of time in seconds since 00:00:00
     GMT, January 1, 1970.

On our system, time_t is:

typedef long time_t;

sizeof(long) on our system is 4 octets (32 bits).

That gives storage for about 136 years beyond January 1, 1970.
I won't lose any sleep over it.

--
Brad Head <brad@instep.bc.ca>				__   __o
Software Developer, InStep Mobile Communications Inc.	___ `\<,
Atomic Racing Club, Vancouver, BC, Canada		--  O/ O
Technical Details
Message-ID: <1996Jun21.231653.3354@instep.bc.ca>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <D19960621T40093X4433@grizzly.asl-labs.bc.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114424,eb9ce83307037cc
X-Google-Attributes: gid114424,public
From: brad@instep.bc.ca
Subject: Re: Year 2000 problem!
Date: 1996/06/21
Message-ID: <1996Jun21.231653.3354@instep.bc.ca>
X-Deja-AN: 161466646
sender: usenet@instep.bc.ca
references: <D19960621T40093X4433@grizzly.asl-labs.bc.ca>
organization: InStep Mobile Communications Inc.
reply-to: brad@instep.bc.ca
newsgroups: bc.unix