[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Current date & time?
From: |
Mario Domenech Goulart |
Subject: |
Re: [Chicken-users] Current date & time? |
Date: |
Thu, 28 May 2009 10:57:55 -0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) |
Hi Matt
On Thu, 28 May 2009 07:32:04 -0600 Matt Gushee <address@hidden> wrote:
> I thought I would create a simple logging facility, and, well of
> course every good log entry needs a timestamp ... so I searched for a
> function to get the current date and/or time, and it doesn't seem to
> exist. Can that be true?
Take a look at
http://chicken.wiki.br/man/4/Unit%20posix#date-and-time-routines
Example:
csi> (use posix)
csi> (seconds->string (current-seconds))
"Thu May 28 10:53:38 2009"
Hope that helps.
Best wishes.
Mario