chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] srfi-19 timezone problems


From: Kon Lovett
Subject: Re: [Chicken-users] srfi-19 timezone problems
Date: Mon, 26 Mar 2007 23:21:29 -0700

On Mar 26, 2007, at 2:25 PM, Hans Bulfone wrote:

hi,

i'm having some timezone-related problems with srfi-19:

it is now:

address@hidden:~$ LC_ALL=C date
Mon Mar 26 23:07:16 CEST 2007

CEST = central european summer time = UTC + 2 hours

#;37> (values (current-date) (current-date (local-timezone-locale)) (current-date 7200))
#,(date 1773119 16 7 21 26 3 2007 -3600 UTC #f 1 85)
#,(date 564000000000 16 7 21 26 3 2007 0 CET #t #f #f)
#,(date 565000000000 16 7 23 26 3 2007 7200 #f #f #f #f)

1. the nanoseconds value seems to be wrong when a timezone (offset)
   is given to (current-date)

2. i'd expected the timezone offset in the first date to be 0 instead
   of -3600 as the returned time is UTC

3. the timezone offset of the 2nd date should imho be 7200 and the hour 23

#;39> (timezone-locale-offset (local-timezone-locale))
0
#;40> (timezone-locale-dst? (local-timezone-locale))
#t

this should be 7200 and #t

Please get the new locale (0.3) & srfi-19 (2.6.2) eggs.

With TZ=CEST2:00 (incorrect but enough to test)

#;2> (values (current-date) (current-date (local-timezone-locale)) (current-date 7200))
#,(date 522000074 10 15 6 27 3 2007 0 UTC #f 2 86)
#,(date 563000000 10 15 8 27 3 2007 7200 CEST #f #f #f)
#,(date 568000000 10 15 8 27 3 2007 7200 #f #f #f #f)

Sorry you had to report this,
Kon


this is on debian linux (etch), chicken 2.6,
srfi-19 2.6.1 (Release 200703131612)

bye,
hans.


_______________________________________________
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]