Article View: news.software.b
Article #4726Re: getdate.y and 1999
From: Jay Maynard
Date: Wed, 30 Dec 1992 20:26
Date: Wed, 30 Dec 1992 20:26
16 lines
1442 bytes
1442 bytes
In article <1992Dec30.194905.19891@news.ysu.edu> doug@cc.ysu.edu (Doug Sewell) writes: >The source code (370 assembler) for the Snobat 1.9 implementation of >Snobol4 has a note to the effect "This code will work until January 1, >2100. If you're still using it then, the joke's on you". Actually, it will work until March 1, 2100... :-) BTW, IBM themselves committed a leap year error that was a bit more esoteric: they used a year mod 4 algorithm, but on a BCD representation of the year! Thus, 1990 (where the relevant storage location was 0x90) was reported to be a leap year... This problem cropped up in a couple of their COBOL compilers, as well as an output viewing utility. They had a fix out on March 3, I think... -- Jay Maynard, EMT-P, K5ZC, PP-ASEL | Never ascribe to malice that which can jmaynard@oac.hsc.uth.tmc.edu | adequately be explained by stupidity. "Brought to you by the letters O, S, and by the number 2." -- Mike Levis
Technical Details
Message-ID:
<8258@lib.tmc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!bcm!lib!oac.hsc.uth.tmc.edu!jmaynardReferences:
<8246@lib.tmc.edu> <1992Dec30.194905.19891@news.ysu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!bcm!lib!oac.hsc.uth.tmc.edu!jmaynard From: jmaynard@oac.hsc.uth.tmc.edu (Jay Maynard) Newsgroups: news.software.b Subject: Re: getdate.y and 1999 Message-ID: <8258@lib.tmc.edu> Date: 30 Dec 1992 20:26:47 GMT References: <8246@lib.tmc.edu> <1992Dec30.194905.19891@news.ysu.edu> Sender: usenet@lib.tmc.edu Organization: UT Health Science Center Houston Lines: 16 Nntp-Posting-Host: oac.hsc.uth.tmc.edu