comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Re: Ada.Calendar and midnight
Date: 05 Aug 2004 15:01:14 +0200
Date: 2004-08-05T15:01:14+02:00	[thread overview]
Message-ID: <plk6wdkacl.fsf@sparre.crs4.it> (raw)
In-Reply-To: sa4acx9ewff.fsf@snoopy.apana.org.au

Brian May wrote:

> According to documentation I have:
> 
> subtype Day_Duration is Duration range 0.0 .. 86_400.0;
> 
> How is midnight meant to be represented?

As 0.0 or 86_400.0 depending on which one of them you are talking
about.

> 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)?

Yes.

It is not possible (in Ada) to define intervals that do not include
their end-points.

Jacob
-- 
     My brain needs a "back" button so I can
         remember where I left my coffee mug.



      parent reply	other threads:[~2004-08-05 13:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Jacob Sparre Andersen [this message]
replies disabled

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