From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3c620ebecf1e16d4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!news2.telebyte.nl!news.jgaa.com!news.hacking.dk!pnx.dk!munin.nbi.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Ada.Calendar and midnight Date: 05 Aug 2004 15:01:14 +0200 Organization: Munin Sender: sparre@sparre.crs4.it Message-ID: References: NNTP-Posting-Host: 80.241.165.42 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: munin.nbi.dk 1091710880 11356 80.241.165.42 (5 Aug 2004 13:01:20 GMT) X-Complaints-To: sparre@munin.nbi.dk NNTP-Posting-Date: Thu, 5 Aug 2004 13:01:20 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:2575 Date: 2004-08-05T15:01:14+02:00 List-Id: 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.