Hi,<br><br>I've found an odd issue with manipulating and generating timestamps using LOCAL-TIME. For example, when trying to encode January 1, 2009 as a timestamp, I get the following results in SBCL:<br><br>PERISCOPE> (encode-timestamp 0 0 0 0 1 1 2009)<br>
@2008-12-31T23:00:00.000000-05:00<br><br>Decoding this result is similarly wrong:<br clear="all">PERISCOPE> (decode-timestamp (encode-timestamp 0 0 0 0 1 1 2009) )<br>0 <br>
0 <br>0 <br>
23 <br>31 <br>
12 <br>2008 <br>
3 <br>NIL <br>
-18000 <br>"EST"<br>
<br>I get other, similar weirdness when adding to timestamps, like so:<br>PERISCOPE> (timestamp-minimize-part * :day)<br>@2009-11-01T00:00:00.000000-04:00<br>PERISCOPE> (timestamp+ * 1 :month)<br>@2009-11-30T23:00:00.000000-05:00<br>
<br>Is this the expected behavior?<br><br>Harry<br><br>-- <br>Harry Bock<br>Software Developer, Package Maintainer<br>OSHEAN, Inc.<br>Email: <a href="mailto:harry@oshean.org">harry@oshean.org</a><br>PGP Key ID: 546CC353<br>