comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: Leap Seconds
Date: Wed, 30 May 2001 14:55:06 -0400
Date: 2001-05-30T18:55:08+00:00	[thread overview]
Message-ID: <9f3fmc$o0f$1@nh.pace.co.uk> (raw)
In-Reply-To: mailman.991247484.29504.comp.lang.ada@ada.eu.org

event_start_time is an absolute time measurement from a known epoch. The
number of seconds since 1/6/80, 00:00:00 - *including leap seconds*. Failure
to count leap seconds internally means that when event_start_time says "Noon
Today" as a delta from the epoch, what you're really reading is "some number
of seconds since XXX". If *you* count leap seconds and *I* don't count leap
seconds and we agree to meet 1234567890 seconds from epoch XXX and *you* are
throwing in a few extra seconds, I'm going to be early. See the problem?

As I pointed out elsewhere, if you can do relative timing, it isn't an issue
unless you are spanning leap-seconds. Also, if your accuracy requirement
isn't that tight, then you can afford to have a discrepancy between the two.
In this case, I'm not in trouble, but I'd like to be thorough so that in
other areas that may use this time base, I've got the computations correct
in the event greater accuracy is needed.

Tucker Taft seems to indicate that there isn't anything in the standard or
the validation suite to check for leap second computations. I'm inclined to
believe him. Counting seconds in Ada.Real_Time has more to do with relative
time computations than with dates, etc. It seems unlikely that the standard
could require dealing with leap-seconds when there are very few systems (in
the overall scheme of things) that would have up-to-date information about
leap-seconds.

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


"Wilhelm Spickermann" <Wilhelm.Spickermann@t-online.de> wrote in message
news:mailman.991247484.29504.comp.lang.ada@ada.eu.org...
>
>
> 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
>





  reply	other threads:[~2001-05-30 18:55 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
2001-05-30 18:55           ` Marin David Condic [this message]
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