Hi
I posted this to the local-time mailing list pointed to by
http://www.cliki.net/local-time
but it seems to have no activity.
So posting it here, hoping someone can help.
The main question is about how to use the local-time code to do things like
List available timezones
Do date arithmetic such as add some time (or days or weeks) to some
date-time etc.
Following is the email as I sent to the mailing list.
--------------
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.
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