🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: uk.tech.misc
Article #22

Re: The 2001-09-09 bug...

#22
From: Harry Broomhall
Date: Tue, 11 Sep 2001 10:21
33 lines
2410 bytes
On Tue, 11 Sep 2001 08:35:01 +0100, Harry Broomhall
<haeb@pc60.demon.co.uk> wrote:

>On Mon, 10 Sep 2001 22:08:18 +0100, Dr John Stockton
><spam@merlyn.demon.co.uk> wrote:
>
>>JRS:  reproduced for info, note newsgroups line & FU :
>>
>>In news:comp.software.year-2000, Falissard <th.falissard@etic.fr> wrote
>>at Sun, 9 Sep 2001 18:03:57 :-
>>
>>>The Un*x time function time_t counts seconds elapsed from 1/1/1970
>>>(the Base Date for UN*X).
>>>
>>>On 2001-09-09 at 01:46:40 GMT ...
>>>  ... exactly 1 billion seconds
>>>have elapsed since the base date.
>>>
>>>I got a bug in some homegrown compiled REXX programs because
>>>1 billion = 1000000000 represents 10 digits, and REXX by default
>>>handles only 9 digits ("numeric digits 9" is the default value).
>>>I had to increase the "numeric digits" value...
>> 
>
>   Another surprise from this one (sometimes known as the S1G moment)
>was with the replication part of OpenLDAP where a programmer decided
>that a strcmp() on the text representation of time_t would be
>good-enough.

   I'm told there is another example of this in cvsupd.

   Regards,
          Harry.
Technical Details
Message-ID: <6cprpts4jrngaf4jqnqib69adkj06khhe2@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!easynet-monga!easynet.net!easynet-post2!monolith.news.easynet.net!not-for-mail
References: <haOm7.24$ga4.34851@nnrp3.proxad.net> <GLtNOlBCvSn7EwtA@merlyn.demon.co.uk> <pgfrpt0sakvo67qn98128llr6g2gse5m04@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1036bc,19a953bfddeb86a2
X-Google-Attributes: gid1036bc,public
X-Google-Thread: f6d13,19a953bfddeb86a2
X-Google-Attributes: gidf6d13,public
X-Google-ArrivalTime: 2001-09-11 03:21:49 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!easynet-monga!easynet.net!easynet-post2!monolith.news.easynet.net!not-for-mail
From: Harry Broomhall <harry.broomhall@uk.easynet.net>
Newsgroups: uk.tech.misc,demon.tech.pc
Subject: Re: The 2001-09-09 bug...
Organization: none
Reply-To: harry.broomhall@uk.easynet.net
Message-ID: <6cprpts4jrngaf4jqnqib69adkj06khhe2@4ax.com>
References: <haOm7.24$ga4.34851@nnrp3.proxad.net> <GLtNOlBCvSn7EwtA@merlyn.demon.co.uk> <pgfrpt0sakvo67qn98128llr6g2gse5m04@4ax.com>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 34
Date: Tue, 11 Sep 2001 11:21:48 +0100
NNTP-Posting-Host: 195.40.7.78
X-Complaints-To: abuse@easynet.net
X-Trace: monolith.news.easynet.net 1000203708 195.40.7.78 (Tue, 11 Sep 2001 11:21:48 BST)
NNTP-Posting-Date: Tue, 11 Sep 2001 11:21:48 BST