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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a3358f1ef9d04e63 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-18 20:06:05 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!fr.usenet-edu.net!usenet-edu.net!fu-berlin.de!uni-berlin.de!ppp-2-227.5800-2.access.uk.worldonline.COM!not-for-mail From: "Nick Roberts" Newsgroups: comp.lang.ada Subject: Re: Calendar - leap seconds Date: Mon, 19 Mar 2001 03:47:23 -0000 Message-ID: <9940d5$49u6d$1@ID-25716.news.dfncis.de> References: NNTP-Posting-Host: ppp-2-227.5800-2.access.uk.worldonline.com (62.64.134.227) X-Trace: fu-berlin.de 984974566 4520141 62.64.134.227 (16 [25716]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: supernews.google.com comp.lang.ada:5831 Date: 2001-03-19T03:47:23+00:00 List-Id: I'm going to upset people here :-/ but Ada.Calendar should never have dealt with the extremely thorny issue of converting continuous absolute time to and from a calendrical system such as Gregorian (or whatever you want to call it). It should have been called Ada.Time_Functions and simply had two functions such as To_MJD(:Time) and To_Time(:MJD).* There could then have been an optional package Ada.Text_IO.Gregorian_Calendar, as well as perhaps Ada.Text_IO.Time_Within_Day (for hours minutes and seconds), etc. Ah well. That's with the benefit of hindsight, I suppose. -- Nick Roberts http://www.AdaOS.org * MJD: the Modified Julian Date system, offset but otherwise identical to the system astronomers use to reckon absolute time on a simple continuous scale. The unit is SI seconds.