chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] srfi-19 timezone problems


From: Hans Bulfone
Subject: [Chicken-users] srfi-19 timezone problems
Date: Mon, 26 Mar 2007 23:25:45 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

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

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

bye,
hans.




reply via email to

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