comp.lang.ada
 help / color / mirror / Atom feed
From: Brian May <bam@snoopy.apana.org.au>
Subject: Re: ADA.CALENDAR.TIME_OF problem with cygwin gcc-ada
Date: Sat, 19 Jun 2004 12:21:43 +1000
Date: 2004-06-19T12:21:43+10:00	[thread overview]
Message-ID: <sa4oengmgnc.fsf@snoopy.apana.org.au> (raw)
In-Reply-To: 40d31280@news.admin.ch

>>>>> "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>



  parent reply	other threads:[~2004-06-19  2:21 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 [this message]
2004-06-19 19:14   ` Roger Blum
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