Re: a question about (get-time)
Thomas Russ <[email protected]> Fri, 28 May 2004 15:33:09 -0700
| Newsgroups | gmane.lisp.cl-http |
|---|---|
| Message-ID | <[email protected]> |
On May 28, 2004, at 3:08 PM, [email protected] wrote: > > How about this ... > > (multiple-value-bind (hours minutes seconds) > (get-time) > (list (format nil "~D:~D:~D" hours minutes seconds))) An better format string that prints the leading zeros for minutes and seconds would be: "~D:~2,'0D:~2,'0D"