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,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: Brian May Newsgroups: comp.lang.ada Subject: ADA.CALENDAR and midnight Date: Thu, 05 Aug 2004 20:00:52 +1000 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:5MU5oMM2JtdyyBOxJJZ7XSqqpmY= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: dsl-202-173-153-89.vic.westnet.com.au X-Trace: news.melbourne.pipenetworks.com 1091700051 202.173.153.89 (5 Aug 2004 20:00:51 +1000) X-Complaints-To: abuse@pipenetworks.com X-Abuse-Info: Please forward all headers to enable your complaint to be properly processed. Path: g2news1.google.com!news1.google.com!news.glorb.com!newspeer1.stngva01.us.to.verio.net!verio!newsfeed.cwix.com!news1.optus.net.au!optus!news.mel.connect.com.au!news.melbourne.pipenetworks.com!not-for-mail Xref: g2news1.google.com comp.lang.ada:2568 Date: 2004-08-05T20:00:52+10:00 List-Id: 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