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 X-Google-Thread: 103376,cfd23c10fd537a80 X-Google-Attributes: gid103376,public From: Geoff Bull Subject: Re: Ada Calendar oddity Date: 2000/05/12 Message-ID: <391B601C.D0B64CD8@acenet.com.au>#1/1 X-Deja-AN: 622374271 Content-Transfer-Encoding: 8bit References: <39176D85.603D7AEC@research.canon.com.au> <39178DEA.FD2C20FA@research.canon.com.au> <8f92o1$6v$1@nnrp1.deja.com> <3918BB77.693C70D6@research.canon.com.au> <8fahfv$mgt$1@nnrp1.deja.com> <3919CC94.538DDBA0@online.no> <391AB866.23686FFB@acenet.com.au> <391AD9DE.778D13EB@maths.unine.ch> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@telstra.net X-Trace: nsw.nnrp.telstra.net 958095580 203.35.118.1 (Fri, 12 May 2000 11:39:40 EST) Organization: Customer of Telstra Big Pond Direct MIME-Version: 1.0 NNTP-Posting-Date: Fri, 12 May 2000 11:39:40 EST Newsgroups: comp.lang.ada Date: 2000-05-12T00:00:00+00:00 List-Id: Gautier wrote: > > Geoff Bull: > > > So when you read a date from the database, what type should you use? > > If you avoid using Ada.Calendar how do you compare the database time > > with the today's date, e.g.? > > Simple ;-) : you make a package Long_Calendar with all operators > and also conversions from and to Ada.Calendar. Sure, but you only have to do this because of the inadequacy of Ada.Calendat, not because it is funadanmentally bad practice to use the standard Ada libraries (that is how I interpreted what "Tarjei Tj�stheim Jensen" wrote - in restrospect, I realise he meant that is was incorrect to use Ada.Calendar in this context because Ada.Calendar was incapable of doing the job at hand).