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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,36a55639406b266c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-14 07:43:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.esat.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed.siemens.de!news.siemens.de!news.mch.sbs.de!not-for-mail From: Alfred Hilscher Newsgroups: comp.lang.ada Subject: Re: Timestamps in Ada Date: Thu, 14 Mar 2002 16:42:56 +0100 Organization: Siemens AG Message-ID: <3C90C500.EF4A566F@icn.siemens.de> References: <3C8DE8B0.51FA1AE8@earthlink.net> NNTP-Posting-Host: 139.21.122.158 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:21232 Date: 2002-03-14T16:42:56+01:00 List-Id: "Marc A. Criley" wrote: > > how can I get the Date and Time in Ada? and conversion to string? > > Use the Clock function in the standard Calendar package to get the time A while ago I wrote a program (GNAT 3.13p, WinNT, 3 tasks) which used the "Calendar" package to write timestamps into a logfile, but I realised that when the system time changes (due to sync with a time server, or even by calling "Time" in a DOS window), the Ada.Calendar time doesn't change. So the logfile didn't reflect the events correctly.