[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: srfi-19 time-utc->date bug
From: |
Ludovic Courtès |
Subject: |
Re: srfi-19 time-utc->date bug |
Date: |
Tue, 14 Aug 2007 09:45:40 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Hi,
Eric Eisner <address@hidden> writes:
> In the srfi-19 module, the various conversion functions from time to
> date all have the interesting behavior that the zone-offset: property of
> the output date is somewhere in the range of -18000 to -44000.
> For a specific test case:
> "(date-zone-offset (time-utc->date (make-time 'time-utc 0 0)))"
Note that you should use "time-utc" (a variable name) rather than
"'time-utc" (the symbol).
> evaluates to -18000
>
> Running guile 1.8.1, Debian Etch linux 2.6.18
I believe this is fixed in 1.8.2:
guile> (date-zone-offset (time-utc->date (make-time time-utc 0 0) -3000))
-3000
Can you try it out? 1.8.2 is not yet in Debian but it's available from
any GNU mirror.
What's the timezone of your locale?
Thanks,
Ludovic.