comp.lang.ada
 help / color / mirror / Atom feed
From: Geoff Bull <gbull@acenet.com.au>
Subject: Re: Ada Calendar oddity <was Re: C date package>
Date: 2000/05/11
Date: 2000-05-11T00:00:00+00:00	[thread overview]
Message-ID: <391AB6C4.5CEE8F@acenet.com.au> (raw)
In-Reply-To: 3919862C.7870D7D8@earthlink.net



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.




  reply	other threads:[~2000-05-11  0:00 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <l0313030eb53d1408aee7@[144.205.16.58]>
2000-05-09  0:00 ` C date package Geoff Bull
2000-05-09  0:00   ` Geoff Bull
2000-05-09  0:00     ` Robert Dewar
2000-05-10  0:00       ` Geoff Bull
2000-05-10  0:00         ` Robert Dewar
2000-05-10  0:00           ` Ada Calendar oddity <was Re: C date package> Preben Randhol
2000-05-10  0:00             ` Tarjei Tj�stheim Jensen
2000-05-11  0:00               ` Charles Hixson
2000-05-11  0:00                 ` Tarjei Tj�stheim Jensen
2000-05-12  0:00                   ` Charles Hixson
2000-05-12  0:00                     ` Tarjei Tj�stheim Jensen
2000-05-11  0:00               ` Geoff Bull
2000-05-11  0:00                 ` Gautier
2000-05-12  0:00                   ` Geoff Bull
2000-05-12  0:00                     ` Gautier
2000-05-11  0:00                       ` Al Christians
2000-05-10  0:00             ` Robert A Duff
2000-05-10  0:00               ` Preben Randhol
2000-05-10  0:00                 ` Charles Hixson
2000-05-11  0:00                   ` Geoff Bull [this message]
2000-05-11  0:00                     ` Charles Hixson
2000-05-12  0:00                       ` Geoff Bull
2000-05-17  0:00               ` Robert I. Eachus
2000-05-19  0:00                 ` Geoff Bull
2000-05-19  0:00                   ` Robert I. Eachus
2000-05-21  0:00                     ` Robert Dewar
2000-05-21  0:00                   ` Robert Dewar
     [not found]                     ` <392869F0.D88F056A@acenet.com.au>
2000-05-22  0:00                       ` Tarjei Tj�stheim Jensen
2000-05-27  0:00                         ` Reinert Korsnes
2000-05-27  0:00                           ` Tarjei Tj�stheim Jensen
2000-06-03  0:00                       ` Robert I. Eachus
2000-05-10  0:00           ` C date package Ken Garlington
2000-05-10  0:00             ` Geoff Bull
2000-05-10  0:00           ` Geoff Bull
replies disabled

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