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?

2.207.

> 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: http://matt.gushee.net/rg/


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to