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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cfd23c10fd537a80 X-Google-Attributes: gid103376,public From: Geoff Bull Subject: Re: Ada Calendar oddity Date: 2000/05/11 Message-ID: <391AB6C4.5CEE8F@acenet.com.au>#1/1 X-Deja-AN: 622105568 Content-Transfer-Encoding: 7bit References: <39176D85.603D7AEC@research.canon.com.au> <39178DEA.FD2C20FA@research.canon.com.au> <8f92o1$6v$1@nnrp1.deja.com> <3918BB77.693C70D6@research.canon.com.au> <8fahfv$mgt$1@nnrp1.deja.com> <3919862C.7870D7D8@earthlink.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@telstra.net X-Trace: nsw.nnrp.telstra.net 958052226 203.35.118.1 (Thu, 11 May 2000 23:37:06 EST) Organization: Customer of Telstra Big Pond Direct MIME-Version: 1.0 NNTP-Posting-Date: Thu, 11 May 2000 23:37:06 EST Newsgroups: comp.lang.ada Date: 2000-05-11T00:00:00+00:00 List-Id: Charles Hixson wrote: > > It seems to me that it is a mistake to include seconds, much less any smaller > unit, in the calendar date. Astronomers and real time programers, e.g., might not agree with you. Although, of course, the latter group are catered for with Ada.Real_Time. > I'm not sure that minutes is justified, but if Depends on what requirement you are trying to meet. > one uses a 64 bit number then it wouldn't seem to cause any problems. Elsewhere it has already been stated that no more than 32 bits is essential (I have no opinion on this0. > Perhaps Calendar and Time could be two separate packages, each using a 64-bit > number as their base, one based on days and the other based on > ?nano?-seconds. This is perhaps not a bad idea, because seconds and days are different concepts, one being a fixed period of time, the other being the variable amount of time for one rotation of the earth (either wrt to the sun or the stars). > Or time could be defined with the top 32 bits being ... Of course it would be defined as a private type.