× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: doing date arithmetic in CL
  • From: "Shaw, David" <dshaw@xxxxxxxxxxx>
  • Date: Tue, 11 Jan 2000 13:25:03 -0500

-----Original Message-----
From: Joel Fritz [mailto:JFritz@sharperimage.com]

I agree with you about date calculations in CL and the new Y2K myth, but in
all fairness, I think a lot of engineering calculations are based on
algorithms that work most of the time or at least produce results that are
"close enough."  e.g. Newtonian mechanics. The leap year algorithm that uses
4, 100, and 400 is only a pretty darned good approximation, admittedly a lot
better than the one that only uses 4.

I had an extra day off and need to slough off some of the extra energy
through pedantry. <g>

---------------------

Joel,

Well, if we're going to be pedantic, let's pick a nit: the 4, 100, 400 rule is
exact for the Gregorian calendar for the range from AD 1 to AD 3999.  The
Gregorian calendar is where the approximation exists - it attempts to maintain
its anchor point in approximately the same part of the earth's orbit around the
sun from year to year.

Oh, that AD 3999 thing?  Some astronomers say that to maintain the approximation
years divisible by 4,000 should not be leap years, unless they are divisible by
20,000.  I've never been able to verify whether that is "official" in the
Gregorian calendar or not - I'm not even sure who would decide.

Dave Shaw
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.