Article View: news.software.nntp
Article #43425Re: Missing Skirvin? (was Re: Usenet: Predictions for the New Millenni
From: Martin Maney
Date: Sun, 16 Jan 2000 00:00
Date: Sun, 16 Jan 2000 00:00
33 lines
2703 bytes
2703 bytes
J. Moreno <planb@newsreaders.com> wrote:
> Peter da Silva <peter@taronga.com> wrote:
>> printf("...%d...", ...time->tm_year...);
>>
>> A program should never generate "100" for the year 2000, but a paranoid
>> server should accept it.
> I'm not sure that is what was meant, it seems to me that 3 would be
> "000" (at least for the next hundred years, when it'd be "100").
You haven't been paying attention to the Y2K bugs that actually surfaced,
then. This is a classic one: many half-witted programmers have assumed, as
you seem to be doing, that tm_year has the value of "year within century".
It doesn't; the definition is "years since 1900", and while that may be
dumb, it's the way it is. This bug has shown up in quite a number of
places, possibly starting in the Auckland airport's "Y2K is here and we're
okay" letter that was originally posted with the date as 1/1/100. And I
believe it is, in slightly altered form, also responsible for a widely
reported "01/01/10" produced by many (?) C-shell variants.
In fact, if you consider the timestamp to be a simple ASCII representation
of parts of the underlying Standard C time structure, you would expect to
get amd accept "100" this year. :-)
> Which is just what I meant -- a good server that was programed to last
> a long time would assume that "100" meant 2100.
Heavens, no. What would it do come 3100 in that case? :-) :-)
--
NT scales to quad Xeons? Linux scales to S/390. Benchmark that, soft ones.
Technical Details
Message-ID:
<85t6q7$o4d$1@wheel.two14.lan>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mailReferences:
<slrn86q6s4.i49.grobe+news@worf.netins.net> <090120000152491732%planb@newsreaders.com> <7Wv1XHXXw-B@khms.westfalen.de> <150120001630026098%planb@newsreaders.com> <85rer6$2p8q$1@citadel.in.taronga.com> <150120002312459367%planb@newsreaders.com>Show Full Headers
Complete Article Headers
Message-ID: <85t6q7$o4d$1@wheel.two14.lan>
Subject: Re: Missing Skirvin? (was Re: Usenet: Predictions for the New Millenni
Date: Sun, 16 Jan 2000 00:00:00 +0000
From: Martin Maney <maney@pobox.com>
References: <slrn86q6s4.i49.grobe+news@worf.netins.net> <090120000152491732%planb@newsreaders.com> <7Wv1XHXXw-B@khms.westfalen.de> <150120001630026098%planb@newsreaders.com> <85rer6$2p8q$1@citadel.in.taronga.com> <150120002312459367%planb@newsreaders.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!not-for-mail
X-Deja-AN: 573452564
Sender: Martin Maney <maney@furrr.two14.lan>
X-Abuse-Info: Please forward ALL headers when reporting abuse
X-Complaints-To: abuse@telocity.net
X-Trace: MzEgTm9BdXRoVXNlciBURUxPQ0lUWS1SRUFEJVJTIDIxNi4yMjcuOS45ICBTdW4sIDE2IEphbiAy!MDAwIDExOjU0OjUzIFBTVA==
Organization: The Maneys
User-Agent: tin/pre-1.4-981225 ("Volcane") (UNIX) (Linux/2.0.38 (i686))
NNTP-Posting-Date: Sun, 16 Jan 2000 11:54:53 PST
Newsgroups: news.admin.misc,news.software.nntp