comp.lang.ada
 help / color / mirror / Atom feed
* UTC Time Offset on GNAT 2006 for windows
@ 2006-06-25 12:23 Björn
  0 siblings, 0 replies; 2+ messages in thread
From: Björn @ 2006-06-25 12:23 UTC (permalink / raw)


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 := 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;      
end Time_Zone_Test;

Best regards,
Björn Holmberg




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: UTC Time Offset on GNAT 2006 for windows
@ 2006-06-26 15:13 Anh Vo
  0 siblings, 0 replies; 2+ messages in thread
From: Anh Vo @ 2006-06-26 15:13 UTC (permalink / raw)
  To: comp.lang.ada, Björn

I ran into this same problem more than a week ago. This bug has been reported to report@adacore.com.

AV

>>> "Björn" <ssh9614@hotmail.com> 6/25/2006 5:23 AM >>>
I'm having problem with UTC_Time_Offset in GNAT GPL 2006 (20060522-34)
for windows.

[...]





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-26 15:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-26 15:13 UTC Time Offset on GNAT 2006 for windows Anh Vo
  -- strict thread matches above, loose matches on Subject: below --
2006-06-25 12:23 Björn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox