Timedate()



Hi Rich,

I just checked, that timedate() returns a correct results with clisp and sbcl. Maxima on XP 
uses gcl, which seems to cause the wrong timedate.

Just try the following input:

(%i1) timedate();
(%o1)                   23:05:43 Tue, 7/22/2008 (GMT+1)

should be  00:05:43 Wed, 7/23/2008 (GMT+1)

(%i2) :lisp(get-decoded-time)
48 sec
5 min
23 h
22 day
7 month
2008 year
1 day of week (0=Mon, 1=Tue, ..)
NIL = daylight saving time not in action
-1 difference to GMT

Now the daylight saving time is in action, so the answer is wrong here. 
The difference to GMT is correct (for Germany), but I guess just by chance, because in 
Philadelphia you also got -1(which results in showing (GMT+1) ).
The difference of 1 minute in your timedate I do not understand.

Seems like a gcl bug.

Volker van Nek


Am 11 Jul 2008 um 21:26 hat Richard Hennessy geschrieben:

> I am using Windows XP Professional and the system time according to Windows is correct but when I run the timedate() function reports the wrong time and day.  Running it now as I send this e-mail it reports that the day is Sat and the
> date and time are 02:21:52 Sat, 7/12/2008 (GMT+1)
> 
> The correct time is 9:22:52 Fri 7/11/2008.
> 
> Am I doing something wrong?
> 
> I just issued 
> 
> timedate();
> 
> using Maxima 5.15.0.
> 
> I think this is a time zone issue but I don't know the function to change the timezone to EST which is right for Philadelphia, PA.
> 
> Rich
> 
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima