chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Possible formating Bug in SRFI-19?


From: F. Wittenberger
Subject: Re: [Chicken-users] Possible formating Bug in SRFI-19?
Date: Mon, 18 Aug 2008 17:28:53 +0200

Am Montag, den 18.08.2008, 11:15 -0400 schrieb John Cowan:
> Jörg F. Wittenberger scripsit:
> 
> > Right now (time-second (date->time-utc (current-date))) is 1219068469.
> 
> Which is bigger than a Scheme fixnum.  That's the source of the trouble.

Chickens's fixnum on 32bit platform, to be precise.

But that doesn't matter much.

(Letting alone, that other Schemes will display 1219068469 without ".0";
wich, according to R5RS are both ok.)

The point is the trouble is there, SRFI-19 date->string should print
without ".0" - it really disturbs, if used in HTTP/SMTP headers and the
like.  For the time being, I'm using string-index-right and substring to
get rid of it.  Something, which works, but it leaves a bad feeling in
the stomach.  I had no better idea, sorry.

/Jörg




reply via email to

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