[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] srfi-29.egg (for srfi-19.egg)
From: |
Sven . Hartrumpf |
Subject: |
Re: [Chicken-users] srfi-29.egg (for srfi-19.egg) |
Date: |
Fri, 20 Oct 2006 11:54:07 +0200 (CEST) |
Fri, 20 Oct 2006 09:13:47 +0200 (CEST), Sven.Hartrumpf wrote:
> > Don't know. The srfi-29.meta (for ver 1.5, the current) needs
> > 'miscmacros misc-extn lookup-table locale'.
>
> I see. It looks like manual installation of single eggs might
> be too complicated to get it right (at least for me, sorry).
> But the fully automatic installation (i.e. chicken-setup srfi-19)
> works perfectly for me.
One minor annoyance when converting from times to dates
is that one ends up with inexact values from date-year, date-month,
etc.:
> (time-utc->date (make-time 'time-utc 0 1161337098))
#,(date 0 18 38 9 20 10 2006 0 CET #f #f) ; <-- fine
> (time-utc->date (current-time))
#,(date 0 34.0 39.0 9.0 20.0 10.0 2006.0 0 CET #f #f) <-- not so fine
The reason for this is that srfi-19.scm uses (current-seconds)
directly. A quick fix would be to replace this by
(inexact->exact (current-seconds)) but this might become
problematic looking at the ChangeLog entry for (current-seconds):
2004-01-12 flw <address@hidden>
- library.scm: `current-seconds' returns a flonum, now [Thanks to
Alejandro Forero Cuervo]
Greetings
Sven
pgpyRqGtcOwAS.pgp
Description: PGP signature