comp.lang.ada
 help / color / mirror / Atom feed
From: Paul Storm <paul.a.storm@lmco.com>
Subject: Re: Leap Seconds
Date: Thu, 31 May 2001 09:39:16 -0700
Date: 2001-05-31T09:39:16-07:00	[thread overview]
Message-ID: <3B1673B4.263CBC22@lmco.com> (raw)
In-Reply-To: 9f5nr3$j6m$1@nh.pace.co.uk



Marin David Condic wrote:
> 
> Yeah - once you're talking just seconds, that's fine because you are now in
> relative time WRT some epoch. However, once you go to calendar time, you've
> got a problem. Consider that we agree to meet on March 1. If you count leap
> years and I don't, won't we have a difference in what the number of days is
> between now and March 1? So if your epoch is 1/6/80-00:00:00 and my epoch is
> 1/1/96-00:00:00, how many seconds are between those to epochs? Won't it
> matter if you count leap-seconds (leap-years?) or not? Naturally, being both
> in the past, the conversion is a constant value. But what if I need to know
> the seconds between either of those epochs and some date way in the future?
> Unlike leap-years, leap-seconds are not predictable.
> 
This is not precise.  Leap seconds are well defined.  You CAN calculate
a leap second for any specific future time.

It is theoretically possible that there may never be any more leap
seconds promulgated. (not likely, I'll admit)  In which case the current
list of established leap seconds are known.

At any given run time of the program the leap seconds are(or will be)
defined and established.  Hence you can calculate for any future times
in systems applicable to leap seconds. Furthermore you can determine
what leap seconds were applicable for any (previous) execution of the
program.  Designing your application to look up the leap second
constants at run time is certainly possible.
The rest is commentary on how to code it.

Regards.



  reply	other threads:[~2001-05-31 16:39 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
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 [this message]
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