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!news1.google.com!news.glorb.com!news.cs.univ-paris8.fr!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 11:46:34 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <1jgik0ntrex36$.1pyha1husddpe.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 1091962319 3202 62.49.19.209 (8 Aug 2004 10:51:59 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sun, 8 Aug 2004 10:51:59 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:2623 Date: 2004-08-08T11:46:34+01:00 List-Id: "Dmitry A. Kazakov" writes: > should be an atomic way to get exact UTC. Actually > Ada.Real_Time.Time seems a better candidate for UTC. I don't see why you would think that? D.8(19): "The Time value I represents the half-open real time interval that starts with E+I*Time_Unit and is limited by E+(I+1)*Time_Unit, where Time_Unit is an implementation-defined real number and E is an unspecified origin point, the epoch, that is the same for all values of the type Time. It is not specified by the language whether the time values are synchronized with any standard time reference. For example, E can correspond to the time of system initialization or it can correspond to the epoch of some time standard." In GNAT Ada.Real_Time.Time is bitwise identical to Ada.Calendar.Time (which I believe to be a mistake, but quite hard to fix). -- Simon Wright 100% Ada, no bugs.