comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Dowie" <martin.dowie@btopenworld.com>
Subject: Re: Inserting Calendar.Time in a database
Date: Sun, 8 Aug 2004 08:35:07 +0000 (UTC)
Date: 2004-08-08T08:35:07+00:00	[thread overview]
Message-ID: <cf4ojq$p4$1@hercules.btinternet.com> (raw)
In-Reply-To: 13x45njobjvn3.yhisk87dws3.dlg@40tude.net

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message
news:13x45njobjvn3.yhisk87dws3.dlg@40tude.net...
> On Sat, 7 Aug 2004 09:50:18 +0000 (UTC), Martin Dowie wrote:
>
> > Or just read the UTC Offset until you get 2 values that are the same...
>
> (:-)) Consider an Ada system put in a car moving along a time zone
> margin...
>
> But seriously, there are requirements on time stamps Ada.Calendar.Time
does
> not meet:
>
> 1. Not monotonic

It can be monotonic. I'd be a little surprised if it wasn't on
implementations that also provided Ada.Real_Time but I'm sure someone will
now point to examples where this isn't true ;-)


> 2. Coarse granularity (12 ms in the worst case)

Yup, that's coarse but then for most implementations Ada.Calendar and
Ada.Real_Time are just going to give you what the underlying OS/hardware
provide.


> 3. Two clock readings are not unique

???

> And why a small networking embedded system (intelligent sensor, for
> example), which needs synchronized clock should use Ada.Calendar, maintain
> time zone data base etc?

I'm sure we could come up with lots of 'little' examples about where this
isn't the 'best' solution. But the standard libraries (to me) are there to
make the common things easy to do. For 99% (99+%?) these packages will be
fine.

Cheers

-- Martin






  reply	other threads:[~2004-08-08  8:35 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 [this message]
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
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