[Top][All Lists]

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

Re: [Chicken-users] Current date/time?

From: Matt Gushee
Subject: Re: [Chicken-users] Current date/time?
Date: Sat, 26 Nov 2005 18:34:57 -0700
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051002)

Thomas Chust wrote:

>> Is there a function that returns the current date/time? I've looked
>> carefully through the posix interface docs, and can't find it there; and
>> I see that Chicken doesn't support SRFI-19 (wouldn't that be a good
>> idea?). So, other the obvious kludge of calling the 'date' shell
>> command, what can I do?

> are you using a recent version of CHICKEN?


> In my 2.212 build, the POSIX
> unit contains the necessary functions:
>   * There is the current-seconds function in the library unit, which
>     retrieves the current utime,

Oh, you're right. Of course, I opened up csi and tried a variety of
likely names: time, now, current-time, local-time ... just about
everything *except* current-seconds.

>   * and in the POSIX unit you find seconds->local-time, seconds->utc-time,
>     seconds->string and time->string.

Of course, those require a timestamp as an argument.

Thanks for the info.

Matt Gushee
The Reluctant Geek:

reply via email to

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