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!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Inserting Calendar.Time in a database Date: 08 Aug 2004 12:03:34 +0100 Organization: Pushface Sender: simon@smaug.pushface.org 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: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1091963339 28850 62.49.19.209 (8 Aug 2004 11:08:59 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sun, 8 Aug 2004 11:08:59 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:2624 Date: 2004-08-08T12:03:34+01:00 List-Id: "Martin Dowie" writes: > "Dmitry A. Kazakov" wrote in message > news:13x45njobjvn3.yhisk87dws3.dlg@40tude.net... > > 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 ;-) Under VxWorks, certainly for GNAT <= 5.02, Ada.Real_Time.Time is identical to Ada.Calendar.Time (calls clock_gettime()), and you can alter Ada.Calendar.Time using clock_settime(). So what to do if you need to synchronize your clocks over a distributed system? (you understand, this is the problem we had to solve, not a request for help!) -- Simon Wright 100% Ada, no bugs.