chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] SRFI-19 Error


From: Kon Lovett
Subject: Re: [Chicken-users] SRFI-19 Error
Date: Tue, 1 Feb 2011 17:19:03 -0800

Hello Thomas,

This is a bug. I will look into it. Sorry but thank you for reporting.

Kon

On Feb 1, 2011, at 5:03 PM, Thomas Hintz wrote:

Using csi and GNU readline (I don't think I'm doing anything wrong...):

#> (use srfi-19)
#> (date-subtract-duration (current-date) (make-duration days: 3))

Error: (+) bad argument type - not a number: #<input port "(gnu- readline)">

        Call history:

        def-tt304312
        srfi-19-date#default-date-clock-type
        body302308
        srfi-19-support#tm:date->time
        srfi-19-support#tm:as-some-time
        srfi-19-support#tm:subtract-duration
        srfi-19-support#tm:date-timezone-info
        srfi-19-date#tm:time->date/tzi
        srfi-19-support#tm:time->date
        locale-components#locale-components?

Another error:

#> (date-add-duration (current-date) (make-duration days: 3))
#,(date 318000000 24 3 7 31 8 2020 -18000 EST #f #f #f #f)

This is not the correct date...

It doesn't seem to matter if I use make-date or current-date. current-date is:

#> (current-date)
#,(date -778000000 55 0 20 1 2 2011 -18000 EST #f #f #f #f)

This is on Chicken 4.6.3 on Arch Linux i686.

If I'm doing something wrong, please let me know, otherwise I would be glad to help pin-point the bug.

Thanks,

Thomas Hintz
_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users




reply via email to

[Prev in Thread] Current Thread [Next in Thread]