Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

a question about (get-time): msg#00006

Subject: a question about (get-time)
> 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



<Prev in Thread] Current Thread [Next in Thread>