Article View: uk.tech.misc
Article #21Re: The 2001-09-09 bug...
From: Harry Broomhall
Date: Tue, 11 Sep 2001 07:35
Date: Tue, 11 Sep 2001 07:35
28 lines
2198 bytes
2198 bytes
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.
Regards,
Harry.
Technical Details
Message-ID:
<pgfrpt0sakvo67qn98128llr6g2gse5m04@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!easynet-tele!easynet.net!easynet-post1!monolith.news.easynet.net!server-5a.dsl.easynet.co.uk!not-for-mailReferences:
<haOm7.24$ga4.34851@nnrp3.proxad.net> <GLtNOlBCvSn7EwtA@merlyn.demon.co.uk>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 00:35:16 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!easynet-tele!easynet.net!easynet-post1!monolith.news.easynet.net!server-5a.dsl.easynet.co.uk!not-for-mail From: Harry Broomhall <haeb@pc60.demon.co.uk> Newsgroups: uk.tech.misc,demon.tech.pc Subject: Re: The 2001-09-09 bug... Organization: Ha! Lines: 29 Message-ID: <pgfrpt0sakvo67qn98128llr6g2gse5m04@4ax.com> References: <haOm7.24$ga4.34851@nnrp3.proxad.net> <GLtNOlBCvSn7EwtA@merlyn.demon.co.uk> Reply-To: haeb@pc60.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: Forte Agent 1.8/32.548 Date: Tue, 11 Sep 2001 08:35:01 +0100 NNTP-Posting-Host: 212.135.215.195 X-Complaints-To: abuse@easynet.net X-Trace: monolith.news.easynet.net 1000193703 212.135.215.195 (Tue, 11 Sep 2001 08:35:03 BST) NNTP-Posting-Date: Tue, 11 Sep 2001 08:35:03 BST