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 Newsgroups: comp.lang.ada Subject: Re: ADA.CALENDAR.TIME_OF problem with cygwin gcc-ada References: <40d31280@news.admin.ch> From: Brian May X-Home-Page: http://snoopy.apana.org.au/~bam/ Date: Sat, 19 Jun 2004 12:21:43 +1000 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:Gl73RmkYoGyrpMca958k/bwfN/g= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: dsl-202-173-153-89.vic.westnet.com.au X-Trace: news.melbourne.pipenetworks.com 1087611703 202.173.153.89 (19 Jun 2004 12:21:43 +1000) X-Complaints-To: abuse@pipenetworks.com X-Abuse-Info: Please forward all headers to enable your complaint to be properly processed. Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news1.optus.net.au!optus!snewsf0.syd.ops.aspac.uu.net!duster.adelaide.on.net!news.melbourne.pipenetworks.com!not-for-mail Xref: g2news1.google.com comp.lang.ada:1680 Date: 2004-06-19T12:21:43+10:00 List-Id: >>>>> "Roger" == Roger Blum writes: Roger> I 'd like to use the function TIME_OF in the package Roger> ADA.CALENDAR to convert a date/time (string format from Roger> database "DD.MM.YYYY HH:MI:SS") to a TIME type in order to Roger> calculate intervals between dates etc. Although I call the Roger> TIME_OF function with correct input, it raises a CONSTRAINT Roger> ERROR (I'm using gcc-ada from cygwin). What time_of function is this? I can't see any that takes a string as a parameter... The only one I know of is this one: function Time_Of (Year : Year_Number; Month : Month_Number; Day : Day_Number; Seconds : Day_Duration := 0.0) return Time; -- Brian May