From: "Roger Blum" <roger_blum@swissonline.ch>
Subject: Re: ADA.CALENDAR.TIME_OF problem with cygwin gcc-ada
Date: Sat, 19 Jun 2004 21:14:42 +0200
Date: 2004-06-19T21:14:42+02:00 [thread overview]
Message-ID: <40d4910f$0$26634$5402220f@news.sunrise.ch> (raw)
In-Reply-To: sa4oengmgnc.fsf@snoopy.apana.org.au
"Brian May" <bam@snoopy.apana.org.au> schrieb im Newsbeitrag
news:sa4oengmgnc.fsf@snoopy.apana.org.au...
> >>>>> "Roger" == Roger Blum <roger.blum@armasuisse.ch> 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 <bam@snoopy.apana.org.au>
It's of course the function mentioned by you. Before calling it I split and
convert the string accordingly.
Roger
next prev parent reply other threads:[~2004-06-19 19:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-18 16:04 ADA.CALENDAR.TIME_OF problem with cygwin gcc-ada Roger Blum
2004-06-18 18:30 ` Frank J. Lhota
2004-06-18 19:24 ` Roger Blum
2004-06-22 13:55 ` Peter Hermann
2004-06-19 2:21 ` Brian May
2004-06-19 19:14 ` Roger Blum [this message]
2004-06-19 6:15 ` Simon Wright
2004-06-19 10:51 ` Georg Bauhaus
2004-06-19 19:16 ` Roger Blum
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox