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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8e3059e71ef99108,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail From: "=?iso-8859-1?B?Qmr2cm4=?=" Newsgroups: comp.lang.ada Subject: UTC Time Offset on GNAT 2006 for windows Date: 25 Jun 2006 05:23:39 -0700 Organization: http://groups.google.com Message-ID: <1151238219.150030.141530@m73g2000cwd.googlegroups.com> NNTP-Posting-Host: 213.114.86.196 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1151238224 18165 127.0.0.1 (25 Jun 2006 12:23:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 25 Jun 2006 12:23:44 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000cwd.googlegroups.com; posting-host=213.114.86.196; posting-account=XtH-7w0AAAD9fnmY345GWHA6uyNTbG5H Xref: g2news2.google.com comp.lang.ada:5007 Date: 2006-06-25T05:23:39-07:00 List-Id: I'm having problem with UTC_Time_Offset in GNAT GPL 2006 (20060522-34) for windows. The following code seems to return the value I expect on my Linux system. However, on Win 2000 SP4 I get strange values (the loop is there to show that the value differs between calls). I didn't find anything in the GNAT documentation suggesting that it should not work. Can anyone else confirm this behaviour on a Windows box? with Ada.Text_IO; with Ada.Calendar; with Ada.Calendar.Time_Zones; procedure Time_Zone_Test is Current_Time : Ada.Calendar.Time :=3D Ada.Calendar.Clock; begin for I in 1 .. 2 loop Ada.Text_IO.Put_Line (Ada.Calendar.Time_Zones.Time_Offset'Image (Ada.Calendar.Time_Zones.UTC_Time_Offset (Current_Time))); end loop; =20 end Time_Zone_Test; Best regards, Bj=F6rn Holmberg