a question about (get-time)

[email protected] Fri, 28 May 2004 15:08:15 -0700
Newsgroups gmane.lisp.cl-http
Message-ID <[email protected]>
> Hello!!
>
> How can I get to introduce the time with the format HH:MM:SS, in a
> list, for example (10:49:24) ?, The function (get-time), returns 4
> values, but I don't know how to do it.
>
> CL-USER 12 : 6 > (get-time)
> 10
> 49
> 24
> 370

How about this ...

  (multiple-value-bind (hours minutes seconds)
      (get-time)
    (list (format nil "~D:~D:~D" hours minutes seconds)))

That would give

    ("10:49:24")

on your example.

 -Bob Giansiracusa