scsh-users
[Top] [All Lists]

Bug in date code

To: <scsh@zurich.ai.mit.edu>
Subject: Bug in date code
From: Stefan Jankowski <janky@informatik.uni-freiburg.de>
Date: Tue, 28 Jan 2003 13:05:55 +0100 (MET)
Consider this (Scsh 0.6.3 and 0.6.2, don't know about earlier
versions):

> (format-date "~Y-~m-~d ~H:~M:~S ~Z" (date (time)))
"2003-01-28 12:47:27 MET"
> (format-date "~Y-~m-~d ~H:~M:~S ~Z" (date (time) "UTC"))
"2003-01-28 11:47:34 UTC"
> (format-date "~Y-~m-~d ~H:~M:~S ~Z" (date (time) 0))
"2003-01-28 11:47:39 MET"
                     ^^^

According to the manual (date (time) "UTC") and (date (time) 0)
should do the same, which is /not quite/ the case:  apparently
the timezone name information is not set up properly in the
latter case. The same is true for other numeric values <> 0.

>From what the manual says, one would expect a tz-name of the form
"UTC+nn:nn:nn" in the latter case.

Regards,
Stefan Jankowski

-- 
Stefan Jankowski               <janky@informatik.uni-freiburg.de>
DV-Systemtechniker                            Tel:  0761-203-8189
Institut für Informatik                       Fax:  0761-203-8109
Universität Freiburg i.Br.



<Prev in Thread] Current Thread [Next in Thread>