From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,92471489ebbc99c6 X-Google-Attributes: gid103376,public From: dewar@gnat.com Subject: Re: Y2K Issues Date: 1998/10/28 Message-ID: <7166p4$poe$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 405811470 References: <362B53A3.64E266AB@res.raytheon.com> <36365724.EF1CC215@maths.unine.ch> X-Http-Proxy: 1.0 x2.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Oct 28 04:32:36 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/2.02 (OS/2; I) Date: 1998-10-28T00:00:00+00:00 List-Id: In article <36365724.EF1CC215@maths.unine.ch>, Gautier de Montmollin wrote: > Someone in an hydrological bureau had the same shock today reading that > LRM topic in AdaHelp, but because of the 1901 problem: many archived time > series begin before 1901... (hydrology, geography etc.) => Calendar is > useless for it ! One has to program a Calendar bis. It's not that > the formulas for this purpose don't exist or are too complicated... > And what to think about astronomical calculations / previsions ?... Why should this be a shock? The standard library packages are provided to cover standard needs, not all possible needs! If you need a calendar package that covers a longer period, then build, buy or otherwise acquire one, just as you would do for lots of other specialized functionality. Note that if you use a compiler with open sources, such as GNAT, then you have the existing sources for Ada.Calendar, and making your own calendar package with different characteristics by modifying this package is fairly straightforward. Basically all you have to do is to add the century corrections for leap years (the GNAT format for Duration is able to accomodate a MUCH larger range than the required range in Ada). Robert Dewar Ada Core Technologies -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own