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/12
Date: 2000-05-12T00:00:00+00:00	[thread overview]
Message-ID: <391B7FA7.A98E0D10@acenet.com.au> (raw)
In-Reply-To: 391ADDEA.E715259@earthlink.net



Charles Hixson wrote:
> But the 64 bit chips are starting to become more common.

You would probably want to have Extended_Calendar in an optional
annex, e.g. information systems. 
The RM only requires 16 bit ints, 24 bit fixed and single
precision floats (32 bit). I can't see people being too enthused
about forcing these limits up to 64 bit just to make date/time
more useful.

> I was thinking of days as being solar, and of seconds as being determined by atomic
> clocks, but this probably doesn't signify.

Atomic clocks are convenient because you can get TAI and UTC 
(they differ only by leap seconds) from GPS (including leap
second broadcasts). It is reasonable to assume that 
*most* implementations can relate local time to UTC
by a time zone offset.

> I don't know how many bits of precision a 64 bit float would have, 

3.5.7 (15) If Long_Float is predefined for an implementation, then
           its requested decimal precision shall be at least 11. 

> suppose one measured the number of days since 01/01/1904 (in honor of the Macintosh
> [I think that's the right date!]).

Why can't we just use the epoch for TAI?


> A slightly different kind of problem is "early in the spring, about a decade ago"
> where the time of year is specified vaguely, but which year, itself, is not
> specified. 

I saw a name for this time system somewhere.
The example was if you referred to the "'50s" you mean the period
1946 to 1954. The name of this system escapes me, but it is
a sufficiently fuzzy concept to be of no use for defining a
Calendar package.




  reply	other threads:[~2000-05-12  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             ` Robert A Duff
2000-05-10  0:00               ` Preben Randhol
2000-05-10  0:00                 ` Charles Hixson
2000-05-11  0:00                   ` Geoff Bull
2000-05-11  0:00                     ` Charles Hixson
2000-05-12  0:00                       ` Geoff Bull [this message]
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             ` 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-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-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