comp.lang.ada
 help / color / mirror / Atom feed
From: Brian May <bam@snoopy.apana.org.au>
Subject: ADA.CALENDAR and midnight
Date: Thu, 05 Aug 2004 20:00:52 +1000
Date: 2004-08-05T20:00:52+10:00	[thread overview]
Message-ID: <sa4acx9ewff.fsf@snoopy.apana.org.au> (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>



             reply	other threads:[~2004-08-05 10:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-05 10:00 Brian May [this message]
2004-08-05 11:06 ` ADA.CALENDAR and midnight 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
replies disabled

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