Jerry,

The problem is that Time_Of is in local time. The UK was on daylight
saving time on 1st Jan 1970, and so my reference is 1 hour out. Most
time zones with no DST in operation will give the correct value. I'd
overlook this possibility when I first wrote the C version. That's why
we had to change it to the more complicated version using the TZ
environment variable.

Andrew

On Thu, Aug 28, 2008 at 12:49:45AM -0700, Jerry wrote:
> Andrew,
> 
> On my machine, in Ada example 29, the line
> 
> xmin := Long_Float(Time_Of(2005, 12, 1, 0.0) - Time_Of(1970, 1,  1,  
> 0.0));
> 
> calculates a value of xmin of 1.13339520000000E+09 which is the same  
> number that you hard-coded the value to recently. Does your machine  
> not calculate this same value of xmin when using the Time_Of function?
> 
> You can print out the xmin value by changing the with-clause to look  
> like this:
> 
> with
>      Ada.Text_IO,
>      Ada.Numerics,
> etc.
> 
> and by adding this line right after the xmin calculation:
> 
> Ada.Text_IO.Put_Line(Long_Float'image(xmin));
> 
> 
> Jerry
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
> 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to