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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cb2591a9113d8ee6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Advice on Calendar.Time Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1131465873.702910.143400@g43g2000cwa.googlegroups.com> Date: Wed, 9 Nov 2005 09:32:51 +0100 Message-ID: NNTP-Posting-Date: 09 Nov 2005 09:32:48 MET NNTP-Posting-Host: 64328847.newsread4.arcor-online.net X-Trace: DXC=C4C>JcnJ061RTD7Kih:TB8:ejgIfPPld4jW\KbG]kaM81BZS;MmC656Fo^_bQ6;D=:WRXZ37ga[7:n919Q4_`Vj9B8=X\UUgbk4 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:6321 Date: 2005-11-09T09:32:48+01:00 List-Id: On 8 Nov 2005 08:04:33 -0800, REH wrote: > We have functions that convert between our mission time and > Ada.Calendar.Time. The current implementation depends on the internal > representation of Time. This is a pain because it must be rewritten > everytime we move to a new compile (or even a new version of the same). > Is there a way to do this in Standard Ada? Our mission time is the > number of seconds since an arbitrarily choosen epoch (1/1/1998) GMT. > We originally used Time_Of, but had problems because Time_Of was using > local time and did DST adjustments which were undesirable. Unfortunately there is no portable way to deal with UTC in Ada. Specifically for the problem of high resolution time stamping of data in a distributed system there is nothing useful. Alas, but Ada 2005 will change nothing here. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de