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,2c14e9c4fe99a4f6 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!newshub.sdsu.edu!newsfeed00.sul.t-online.de!t-online.de!irazu.switch.ch!switch.ch!newsfeed.sunrise.ch!news.sunrise.ch!not-for-mail From: "Roger Blum" Newsgroups: comp.lang.ada References: <40d31280@news.admin.ch> Subject: Re: ADA.CALENDAR.TIME_OF problem with cygwin gcc-ada Date: Fri, 18 Jun 2004 21:24:42 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-ID: <40d34178$0$26645$5402220f@news.sunrise.ch> NNTP-Posting-Host: 62.167.181.193 X-Trace: 1087586680 news.sunrise.ch 26645 62.167.181.193 Xref: g2news1.google.com comp.lang.ada:1673 Date: 2004-06-18T21:24:42+02:00 List-Id: Hi Frank, Thanks for your reply. I 've used GNAT 3.15p before. I was urged to change to cygwin Ada because I have to link my project with some c++ libraries, which isn't supported by GNAT 3.15p (means I haven't found a way to do it). I suppose I have to write my own calendar package to do the date calculations. "Frank J. Lhota" schrieb im Newsbeitrag news:axGAc.1551$z24.1074@nwrdny01.gnilink.net... > "Roger Blum" wrote in message > news:40d31280@news.admin.ch... > > Hi everybody, > > > > I 'd like to use the function TIME_OF in the package ADA.CALENDAR to > convert > > a date/time (string format from database "DD.MM.YYYY HH:MI:SS") to a TIME > > type in order to calculate intervals between dates etc. > > Although I call the TIME_OF function with correct input, it raises a > > CONSTRAINT ERROR (I'm using gcc-ada from cygwin). > > > > Anybody any idea what the problem is and how I can solve it? > > > > Thanks. > > > > Roger > > The problem is that the Ada compiler that comes with Cygwin is seriously > flawed. The solution is to download and use the latest GNAT public release > (version 3.15p). I could not re-create the problem with this compiler. > > It is a shame that the first Ada compiler distributed with Cygwin was not > better. > >