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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no 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!news2.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!nwrdny01.gnilink.net.POSTED!0f19ed38!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: <40d31280@news.admin.ch> Subject: Re: ADA.CALENDAR.TIME_OF problem with cygwin gcc-ada 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: Date: Fri, 18 Jun 2004 18:30:30 GMT NNTP-Posting-Host: 141.154.58.140 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny01.gnilink.net 1087583430 141.154.58.140 (Fri, 18 Jun 2004 14:30:30 EDT) NNTP-Posting-Date: Fri, 18 Jun 2004 14:30:30 EDT Xref: g2news1.google.com comp.lang.ada:1671 Date: 2004-06-18T18:30:30+00:00 List-Id: "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.