[local-time-devel] why no arithmetic

Antony Sequeira antony.sequeira at gmail.com
Mon Oct 22 05:11:59 UTC 2007


Hi,

I read the paper from Eric and thought this would include support for
doing date arithmetic and duration representation.

Although looking back at the paper I see that the Common Lisp
implementation parts in the paper did not mention date arithmetic even
though the paper did talk about it.

So I was wondering how I should go about it. Am I missing something.
Am I supposed to get some components (like the paper says days,
seconds and milliseconds) and add to them  or am I completely off
track here.

I have very little real CL experience, please keep that in mind when you reply.

I hope I do get some replies :)

BTW, I installed the lib and ran tests and got the following

Test FORMAT-TIMESTRING-2 failed for value 0!
Expected value: "2008-06-05T04:03:02.001-5:00"
Actual value: "2008-06-05T04:03:02.001-7:00"
Test UNIVERSAL-TIME-1 failed for value 8!
Expected value: 6
Actual value: 8
67/69 tests passed.
NIL


FWIW

(now)
(decode-local-time (now))

show correct stuff.

My system is Fedora 6 and it is in the Pacific Daylight Savings time zone.
Anyway these failures are not my issues right now, but I thought I'll
share them.

Thank you,
-Antony Sequeira



More information about the local-time-devel mailing list