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