comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Inserting Calendar.Time in a database
Date: Thu, 26 Aug 2004 12:58:21 +0200
Date: 2004-08-26T12:58:21+02:00	[thread overview]
Message-ID: <2p5tveFh9md6U1@uni-berlin.de> (raw)
In-Reply-To: 412db53f$1_1@baen1673807.greenlnk.net

Martin Dowie wrote:

> Dmitry A. Kazakov wrote:
>> No. That would be just a stamp. A time stamp identifies the time of
>> object creation. One more typical example: you measure some signal
>> and wish to display it on-line as a wave form on the other side of
>> the globe. Nether measurement points are equidistant, nor something
>> concrete could be said about the communication channel.
> 
> Er, sorry, that's just not how the word "timestamp" is used either in
> English or in engineering (at least here in the UK) - it does not need to
> be tied to UTC or local time or anything other than 'time from
> reset' (usually). 

There is no time from reset, because there was no reset. Consider publishers
broadcasting data.

Well, after all any time scale has its 0, call it reset time, if you want.
So what is the point? That the time bias shall be indeterminable?

> So long
> as the period between 'ticks' is known then you have all the information
> you need.

Only theoretically, practically the errors will accumulate making the whole
system unusable. Note also that some ticks might get lost. Consider a data
logger working remotely...

> It may be that you need to synch several boards but all you need to do is
> find
> the relative differences between the different start points (i.e. where
> each board thought '0' was).

More than that. You have to do it periodically. I.e. you have to synchronize
time, no more no less. Now consider that your boards communicate in a
many-to-many way. Data have different periods, are event controlled; there
are publisher/subscriber issues etc. What you propose is in fact to
synchronize time for *each* peer-to-peer connection. Apart from being
unrealistic and extremely complex, time/traffic consuming, consider a
possiblity that there already exist radio clock devices doing that much
better. It is no seller.

No real application will do that. It will get UTC from OS in some
OS-specific way, as it happens now.

>> Ada.Real_Time is also about time. That you can view a clock reading as
>> year, month, etc tells nothing about time. It tells only about the
>> time base of the duration interval the clock return. The "system
>> start" base is as good as any other.
> 
> ...and that's exactly why you don't need UTC! :-)

So you actually disagree with Randy! (:-))

-- 
Regards,
Dmitry A. Kazakov
www.dmitry-kazakov.de



  reply	other threads:[~2004-08-26 10:58 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-05 13:44 Inserting Calendar.Time in a database Jano
2004-08-05 15:21 ` Dmitry A. Kazakov
2004-08-05 21:19   ` Martin Dowie
2004-08-06  6:31     ` Jano
2004-08-06 11:32       ` Peter Hermann
2004-08-06 11:40         ` Duncan Sands
2004-08-08 11:10           ` Jano
2004-08-06  7:48     ` Dmitry A. Kazakov
2004-08-06  9:28       ` Martin Dowie
2004-08-06 10:44         ` Dmitry A. Kazakov
2004-08-07  9:50           ` Martin Dowie
2004-08-07 20:32             ` Dmitry A. Kazakov
2004-08-08  8:35               ` Martin Dowie
2004-08-08 11:03                 ` Simon Wright
2004-08-09  7:46                 ` Dmitry A. Kazakov
2004-08-09 17:54                   ` Nick Roberts
2004-08-10  7:33                     ` Dmitry A. Kazakov
2004-08-10  8:36                     ` John B. Matthews
2004-08-10 18:51                       ` Nick Roberts
2004-08-11  1:14                         ` John B. Matthews
2004-08-19  4:10                         ` Jano
2004-08-19  4:10                       ` Jano
2004-08-09 11:52                 ` Frank J. Lhota
2004-08-08 10:46       ` Simon Wright
2004-08-09  8:02         ` Dmitry A. Kazakov
2004-08-24 19:25       ` Randy Brukardt
2004-08-25  7:24         ` Dmitry A. Kazakov
2004-08-25  8:18           ` Martin Dowie
2004-08-25  9:25             ` Dmitry A. Kazakov
2004-08-25  9:42               ` Martin Dowie
2004-08-26  5:26               ` Simon Wright
2004-08-26  0:49           ` Randy Brukardt
2004-08-26  9:30             ` Dmitry A. Kazakov
2004-08-26 10:11               ` Martin Dowie
2004-08-26 10:58                 ` Dmitry A. Kazakov [this message]
2004-08-26 12:32                   ` Martin Dowie
2004-08-26 16:26                     ` Dmitry A. Kazakov
2004-08-26 17:23                       ` Martin Dowie
2004-08-26 18:55               ` Randy Brukardt
2004-08-26 20:04                 ` Dmitry A. Kazakov
2004-08-26  5:22           ` 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