comp.lang.ada
 help / color / mirror / Atom feed
From: Wilhelm.Spickermann@t-online.de (Wilhelm Spickermann)
To: comp.lang.ada@ada.eu.org
Subject: Re: Leap Seconds
Date: Wed, 30 May 2001 20:20:24 +0200 (CEST)
Date: 2001-05-30T20:20:24+02:00	[thread overview]
Message-ID: <mailman.991247484.29504.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <9f0jpb$lnm$1@nh.pace.co.uk>


On 29-May-01 Marin David Condic wrote:
> Well, its actually a "requirement" that is spelled out in a standards
> document that is not (yet) accepted by the FCC (AFIK). WRT
> "event_start_time", the standard says: "A 32-bit unsigned integer quantity
> representing the start time of this alert event as the number of seconds
> since 00 hours UTC, January 6th, 1980 with the count of interleaving leap
> seconds included."
> 
> The situation is this: The source *may* be able to produce that time base &
> interleaving leap seconds. It would require a leap-second table that is
> periodically updated as new leap seconds happen - with the possibility that
> there is some delay between the leap-second and the table update. (In this
> app it isn't critical, but it might one day be critical in some other
> area...) The local time base is different and won't have access to any sort
> of leap-second update table. (Again, in this situation being off by a few
> seconds is not a big deal - but it might be in other parts of the
> application.) I can correct with a constant plus a "tuning" value sent from
> the source - if available - that represents leap seconds & hence we can be
> on the same time base. Hence a solution does exist.

I fail to see the problem here. "event_start_time" allows to operate a clock
which just counts _every_ second and to compute correct time differences
without using any tables or corrections from outside. Its only problems are
conversions to and from human readable form -- but if noone is there to install
new leap second tables, then noone will request such conversions there. All time
stamps used in communication with the outside world would be "event_start_time"
values. 

One pitfall remains: Someone asking for something to be done every day
precisely at noon. Then you will have to convince her or him that a
precisely _regular_ interval would be much better... :-))

Ada support is found in Ada.Real_Time. If I interpret the ARM correctly,
Real_Time counts each and every second and so it has to count added leap
seconds and it may not count omitted leap seconds. So it just has an offset to
the event_start_time and perhaps some (solvable) computational problems as
real_time spans have a small guaranteed range (1 hour) compared to real_time
stamps (50 years from program start-up).

Wilhelm




  parent reply	other threads:[~2001-05-30 18:20 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-25 14:17 Leap Seconds Marin David Condic
2001-05-25 22:02 ` Tucker Taft
2001-05-29 14:43   ` Marin David Condic
2001-05-29 16:02     ` Ted Dennison
2001-05-29 16:46       ` Marin David Condic
2001-05-29 18:38         ` tmoran
2001-05-29 19:26           ` Marin David Condic
2001-05-30 18:20         ` Wilhelm Spickermann [this message]
2001-05-30 18:55           ` Marin David Condic
2001-05-30 23:16             ` Larry Kilgallen
2001-05-31  6:34             ` Joseph P Vlietstra
2001-05-31  9:27             ` Wilhelm Spickermann
2001-05-31 15:31               ` Marin David Condic
2001-06-01  7:55                 ` Wilhelm Spickermann
2001-06-01 13:34                   ` Marin David Condic
2001-06-01 15:24                     ` Wes Groleau
2001-06-01 16:18                       ` Marin David Condic
2001-06-01 20:28                         ` Wes Groleau
2001-06-04 13:54                           ` Marin David Condic
2001-06-04 16:05                             ` Wes Groleau
2001-06-04 16:15                               ` Marin David Condic
2001-05-31 16:53               ` OT: Relativity misunderstood Wes Groleau
2001-05-31 17:20                 ` Ted Dennison
2001-05-31 19:00                   ` Wes Groleau
2001-06-01  6:49                 ` Wilhelm Spickermann
2001-06-04 17:51                 ` [OT] Black holes for interstellar travel (Re: OT: Relativity misunderstood) Jacob Sparre Andersen
2001-06-05 14:07                   ` Wes Groleau
2001-05-30  0:42     ` Leap Seconds Arthur Evans Jr
2001-05-30 10:14       ` AG
2001-05-30 11:20       ` Larry Kilgallen
2001-05-31 16:34         ` Wes Groleau
2001-05-30 14:00       ` Marin David Condic
2001-05-30 15:33         ` Larry Kilgallen
2001-05-30 15:39           ` Marin David Condic
2001-05-31  2:01             ` Robert A Duff
2001-05-31  3:15               ` dale
2001-05-31  7:02               ` tmoran
2001-05-31 15:26               ` Marin David Condic
2001-05-31 16:39                 ` Paul Storm
2001-06-02  6:40                   ` Joseph P Vlietstra
2001-05-31 16:36         ` Wes Groleau
2001-05-31 18:12           ` Marin David Condic
2001-05-30 16:36       ` Darren New
replies disabled

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