chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] choosing right timezone for future date


From: Kon Lovett
Subject: Re: [Chicken-users] choosing right timezone for future date
Date: Mon, 28 Jan 2008 14:49:29 -0800


On Jan 28, 2008, at 2:27 PM, John Cowan wrote:

Graham Fawcett scripsit:

My TZ is set properly, and using strace I see that the correct
zoneinfo file is being accessed. "date +%Z" works properly. Any ideas?

<snip>

However, this doesn't really solve your problem, because it sets
the offset and tzname to the current values, not to the values in
effect at the time.

The TZ database contains historical DST rules. The usual Unix suspects provide a compiled form (Windows doesn't use the TZ database),

SLIB has code to read the binary form (tzfile.scm) and use the info (timecore.scm & timezone.scm).

(I have been meaning to steal the algorithms for the srfi-19 egg.)


I admit I don't know how to make progress here.  Let me think on it.

--
John Cowan  address@hidden   http://www.ccil.org/~cowan
O beautiful for patriot's dream that sees beyond the years
Thine alabaster cities gleam undimmed by human tears!
America! America!  God mend thine every flaw,
Confirm thy soul in self-control, thy liberty in law!
        -- one of the verses not usually taught in U.S. schools


_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users

Best Wishes,
Kon






reply via email to

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