From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e686c2c95beefb1c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!news.cs.univ-paris8.fr!news.zanker.org!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.wxs.nl!dedekind.zen.co.uk!zen.net.uk!demorgan.zen.co.uk!194.72.9.35.MISMATCH!news-peer1!btnet-feed3!newreader.ukcore.bt.net!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: Inserting Calendar.Time in a database Date: Sun, 8 Aug 2004 08:35:07 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1jgik0ntrex36$.1pyha1husddpe.dlg@40tude.net> <41134e18$1_1@baen1673807.greenlnk.net> <94tir0ejn3n4$.a7o1lv87loha$.dlg@40tude.net> <13x45njobjvn3.yhisk87dws3.dlg@40tude.net> NNTP-Posting-Host: host81-154-190-186.range81-154.btcentralplus.com X-Trace: hercules.btinternet.com 1091954107 804 81.154.190.186 (8 Aug 2004 08:35:07 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sun, 8 Aug 2004 08:35:07 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Xref: g2news1.google.com comp.lang.ada:2622 Date: 2004-08-08T08:35:07+00:00 List-Id: "Dmitry A. Kazakov" 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