🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.b
2 messages
2 total messages Started by David Neal Wed, 30 Dec 1992 17:44
getdate.y and 1999
#4723
Author: David Neal
Date: Wed, 30 Dec 1992 17:44
11 lines
683 bytes
I was mucking around with getdate, and noticed
it won't take dates > 1999. Anyone know why? I hate to
just patch it and blow its leap year handling all to hell.


-- 
David Neal -- hdnea@hou281.chevron.com 

My processes aren't dead! They're only resource impaired!
Computationally challenged!
Re: getdate.y and 1999
#4724
Author: Jay Maynard
Date: Wed, 30 Dec 1992 18:04
11 lines
1130 bytes
In article <1992Dec30.174457.29401@nntpserver.chevron.com> hdnea@usho92.hou281.chevron.com (David Neal) writes:
>I was mucking around with getdate, and noticed
>it won't take dates > 1999. Anyone know why? I hate to
>just patch it and blow its leap year handling all to hell.

Actually, if it's using a year mod 4 leap year algorithm, it'll do fine for
2000 - as 2000 is a leap year. 2100, on the other hand, may be a problem...
-- 
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads