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: Graham Fawcett
Subject: Re: [Chicken-users] choosing right timezone for future date
Date: Mon, 28 Jan 2008 15:45:04 -0500

On Jan 28, 2008 2:12 PM, John Cowan <address@hidden> wrote:
> Graham Fawcett scripsit:
>
> > This may not be Chicken-specific, but is there an existing library
> > that, given a date (year,month,day) and given the current locale, will
> > tell me the timezone in which the date falls? I
>
> The locale as such is not relevant to time zones, which are stored in
> the TZ environment variable.  ("en_US" is just one locale, but it
> spans eight time zones.)

D'oh, right.

> > I can't find anything in SRFI-19 to help me here. Using date(1), I can
> > do 'date -d "yyyymmdd" +%z' but that seems silly...
>
> strftime(3), which should be in unit posix but isn't, is your friend;
> it's the library routine underlying date(1).

Thanks, John.

Graham




reply via email to

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