comp.lang.ada
 help / color / mirror / Atom feed
From: dmitry@elros.cbb-automation.de (Dmitry A. Kazakov)
Subject: Re: FILETIME <-> Ada.Real_Time.Time conversions
Date: Tue, 25 Dec 2001 15:53:57 GMT
Date: 2001-12-25T15:53:57+00:00	[thread overview]
Message-ID: <3c289a25.3539701@news.cis.dfn.de> (raw)
In-Reply-To: QmKV7.1288$uM.3857@rwcrnsc54

On Mon, 24 Dec 2001 18:21:36 GMT, tmoran@acm.org wrote:

>>>>Ada.Real_Time.Time is well correlated with UTC, but there is no way to
>>>>convert one to other.
>>>  Package Ada.Calendar does that all the time.  Inside the computer is
>>When Ada.Calendar.Split tells me MM/DD/YY HH:MM:SS.DD I still cannot
>>use this information without knowing the computer location and local
>>rules regarding time faking.
>  Ada.Calendar did some transformation on the Ada.Real_Time counter to
>get MM/DD...  and you want to invert that transformation, right?  But
>it sounds to me like you have a computer which has been blindfolded
>and taken to a secret location.  The only information it has is the
>clock on the wall in its cell, and it wants to know what time it is
>in Greenwich, England.  It either must communicate, but
>> cannot directly synchronize clocks because the connection is too bad
>or else it must somehow find out where (what time zone) it's in, but
>>without knowing the computer location and local rules regarding time faking
>Sounds impossible to me.

Imagine board computers of several cars, plus basis stations located
on Northern pole and Moon.

The point is that Ada.Calendar.Time has no sense without some
additional information, which might be (and is) unavailable. Are you
really sure that an implementation of Ada.Calendar can foresee all
bureaucratic fancies all over the world for a some valued period of
time? Consider a consistent implementation of it for the time period
1951..2051.

It is obvious that Ada.Calendar.Time is unusable for time stamps of
any sort. [Of course it does not mean that there should be no
Ada.Calendar.Time] Time stamps must be an absolute time [of the chosen
coordinate system]. Whether it is an astronomical, greenwich or
whatsoever time is no matter, as long the time base is specified.

Regards,
Dmitry Kazakov



      reply	other threads:[~2001-12-25 15:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-18 12:53 FILETIME <-> Ada.Real_Time.Time conversions Dmitry A. Kazakov
2001-12-19  9:02 ` Alfred Hilscher
2001-12-19 13:37   ` Dmitry A. Kazakov
2001-12-19 15:06     ` Steve Doiel
2001-12-20 11:27       ` M. A. Alves
2001-12-20 15:10       ` Dmitry A. Kazakov
2001-12-21  3:13         ` Steve Doiel
2001-12-21 10:26           ` Dmitry A. Kazakov
2001-12-21 16:18             ` Steve Doiel
2001-12-24 18:02               ` Dmitry A. Kazakov
2001-12-21  6:17         ` tmoran
2001-12-21  8:51           ` Dmitry A. Kazakov
2001-12-21 18:17             ` tmoran
2001-12-24 15:59               ` Dmitry A. Kazakov
2001-12-24 18:21                 ` tmoran
2001-12-25 15:53                   ` Dmitry A. Kazakov [this message]
replies disabled

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