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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ee78aab9bfd2fe2a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feeder.erje.net!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Inspiration for a better calendar package? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <873agxd6i1.fsf@nbi.dk> Date: Tue, 9 Dec 2008 12:15:40 +0100 Message-ID: <12gqldae49yoe$.1sf2zlz1fthvh.dlg@40tude.net> NNTP-Posting-Date: 09 Dec 2008 12:15:40 CET NNTP-Posting-Host: 3ad0d898.newsspool3.arcor-online.net X-Trace: DXC=nj\>j@9DNcfSJ;bb[5FCTGGVUmh?4LK[5LiR>kg2?lAcGNYLnS< X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:3913 Date: 2008-12-09T12:15:40+01:00 List-Id: On Tue, 9 Dec 2008 02:15:55 -0800 (PST), Martin wrote: > Ada.Calendar, Ada.Calendar.Arithmetic and Ada.Calender.Time_Zones > already seem to provide all this (and more!). They do not. There is no portable way to handle UTC. Ada.Calender.Time_Zones and Arithmetic are ill-defined. It was discussed in comp.lang.ada in August this year. I also posted a proposal how to fix the issue to Ada comment. As for Ada.Calendar I doubt there should be any. It is a burden inherited from Ada 83. We just do not need political time otherwise than for formatted text output. It was silly for Ada 2005 to define time arithmetic in terms of political time. Especially because there simply is no way to define such arithmetic. Since political time increment "+" is not a function of its arguments! -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de