comp.lang.ada
 help / color / mirror / Atom feed
* ADA.CALENDAR and midnight
@ 2004-08-05 10:00 Brian May
  2004-08-05 11:06 ` Frank Piron
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Brian May @ 2004-08-05 10:00 UTC (permalink / raw)


Hello,

According to documentation I have:

subtype DAY_DURATION is DURATION range 0.0 .. 86_400.0;

How is midnight meant to be represented?

I would have assumed it would be 0.0, the next day, but preliminary
tests, unless I am confused, seem to show it is represented as
86_400.0 (using gnat compiler for Windows)? The following quote from
the documentation would seem to imply I am correct; "SECONDS
indicating the number of seconds past midnight", but I am getting
behaviour which suggests otherwise.

Why are both 0.0 and 86_400.0 defined to be legal values?  Aren't they
both the same thing (but one day apart)?
-- 
Brian May <bam@snoopy.apana.org.au>



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-08-06  7:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-05 10:00 ADA.CALENDAR and midnight Brian May
2004-08-05 11:06 ` Frank Piron
2004-08-05 11:19 ` Nick Roberts
2004-08-05 11:46   ` Brian May
2004-08-05 12:01     ` Jano
2004-08-05 12:15       ` Jean-Pierre Rosen
2004-08-05 23:18         ` Brian May
2004-08-06  5:59           ` Martin Dowie
2004-08-06  7:34           ` Gautier
2004-08-05 13:01 ` Ada.Calendar " Jacob Sparre Andersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox