comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Any leap year issues caused by Ada yesterday?
Date: Mon, 5 Mar 2012 19:03:12 +0100
Date: 2012-03-05T19:03:12+01:00	[thread overview]
Message-ID: <1t8v4akrmapkl.1xwfi9yxtw2ji$.dlg@40tude.net> (raw)
In-Reply-To: 20608866.730.1330963171058.JavaMail.geo-discussion-forums@ynbq18

On Mon, 5 Mar 2012 07:59:30 -0800 (PST), Shark8 wrote:

> On Monday, March 5, 2012 5:07:29 AM UTC-6, tonyg wrote:

>> Personally I deal with it by using the ada.calendar package rather
>> than writing my own. I hope that answers your question.
> 
> Indeed, given the needed amount of work put into timing* (for tasks), it
> would seem VERY odd if the Ada.Calendar package did not deal with
> leap-year;

No package can actually. The duration of the day (stellar, solar etc) is
not constant due to various factors. Therefore corrections are necessary,
time to time. These corrections are unknown in advance.

> * Granted, for real-time systems the leap-year/leap-second thing is quite
> undesirable, giving rise to the monotonic time of the Real_Time package.

Leap seconds do not influence durations, which is the only thing relevant
for control systems. Systems that use time stamps are not much influenced
by leap seconds either because they too use durations (from some epoch)
rather than local political time.

BTW, I would not wonder to see Real_Time.Time and Calendar.Time same or
correlated.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2012-03-05 18:03 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01 13:06 Any leap year issues caused by Ada yesterday? Georg Bauhaus
2012-03-05 11:07 ` tonyg
2012-03-05 15:59   ` Shark8
2012-03-05 18:03     ` Dmitry A. Kazakov [this message]
2012-03-05 18:30       ` Simon Wright
2012-03-05 20:17         ` Dmitry A. Kazakov
2012-03-05 20:56           ` Simon Wright
2012-03-06  8:47             ` Dmitry A. Kazakov
2012-03-06  9:20               ` Simon Wright
2012-03-06 10:07                 ` Dmitry A. Kazakov
2012-03-06 10:51                   ` Georg Bauhaus
2012-03-06 11:16                     ` Dmitry A. Kazakov
2012-03-06 16:46                   ` Simon Wright
2012-03-06 17:37                     ` Dmitry A. Kazakov
2012-03-06 17:59                       ` Simon Wright
2012-03-06 19:18                         ` Dmitry A. Kazakov
2012-03-06 20:22                           ` Simon Wright
2012-03-06 19:08                       ` Shark8
2012-03-06 19:40                         ` Dmitry A. Kazakov
2012-03-06 21:00                       ` tmoran
2012-03-06 21:37                         ` Simon Wright
replies disabled

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