From: Corey Minyard <minyard@acm.org>
Subject: Re: Ada, calendar, and daylight savings
Date: Mon, 29 Oct 2001 14:18:20 GMT
Date: 2001-10-29T14:18:20+00:00 [thread overview]
Message-ID: <3BDD6550.8020805@acm.org> (raw)
In-Reply-To: JYylBKWxjnI+@eisner.encompasserve.org
Larry Kilgallen wrote:
> In article <3BDCEEFF.10409@acm.org>, Corey Minyard <minyard@acm.org> writes:
>
>>I won't argue about the goofiness of our time system, since I can't do
>>anything about that :-).
>>
>>Hopefully, missiles in flight are using UTC. It makes no sense to use
>>anything else. However, you have no portable way of finding UTC in Ada.
>>
>
> Just ask for the time to be returned.
>
> If your computer happens to be set to some unreliable source,
> such as my watch, then you are at _least_ 5 minutes off from
> _anybody's_ notion of time. That is no longer a programming problem.
>
You are correct, this is a system-level problem, not a programming
language problem. But it's relatively easy to solve to a pretty
accurate level.
>
> Please don't burden Ada.Calendar with illogical constructs.
I don't agree with this. Suppose I can build a system that has time
reasonably coordinated between various parts of the system.
"Reasonable" means "It's good enough for the application". It's not
unreasonable to do this, I have done it many times, and I still can't
use standard Ada to take advantage of this. I could give thousands of
examples, but I'll just give one.
I used to work on telephony systems, and for billing purposes, you
should report UTC time, or some standard time, because the subscriber
may not even be in the same timezone as the switch, and switches are
generally in different timezones and need to have their records
coordinated. Yet you generally want to report logs in local time and
UTC time so the operators in the office can make sense of the logs and
machines can coordinate logs easily. How are you going to do this in
Ada? You can't without using non-standard constructs.
Ok, I'll give another. In the previous missile example, suppose the
missile is communicating with satellites to maintain it's position. It
better be able to tell what time the satellites and ground stations are
using and coordinate this with its time. In distributed real-time
systems, it's generally important to have some level of time
coordination between system elements.
-Corey
next prev parent reply other threads:[~2001-10-29 14:18 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-28 23:41 Ada, calendar, and daylight savings Corey Minyard
2001-10-28 23:53 ` Larry Kilgallen
2001-10-29 3:44 ` Corey Minyard
2001-10-29 10:17 ` Larry Kilgallen
2001-10-29 14:02 ` Corey Minyard
2001-10-29 14:35 ` Marin David Condic
2001-10-29 2:34 ` Steven Deller
2001-10-29 3:51 ` tmoran
2001-10-29 5:53 ` Corey Minyard
2001-10-29 6:49 ` tmoran
2001-10-29 10:21 ` Larry Kilgallen
2001-10-29 14:18 ` Corey Minyard [this message]
2001-10-29 23:15 ` tmoran
2001-10-30 2:07 ` Corey Minyard
2001-10-30 3:11 ` tmoran
2001-11-01 0:13 ` Al Christians
2001-10-30 12:29 ` Larry Kilgallen
2001-10-29 14:48 ` Marin David Condic
2001-10-29 17:41 ` Corey Minyard
2001-10-30 2:19 ` Nick Roberts
2001-10-30 5:41 ` Al Christians
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox