r11492: add pretty-data-ut
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 15 Jan 2007 12:11:09 +0000 (12:11 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 15 Jan 2007 12:11:09 +0000 (12:11 +0000)
datetime.lisp
package.lisp

index 59c1b3e..0346661 100644 (file)
                   "July" "August" "September" "October" "November"
                   "December")
                 (1- mn))
-           (format nil "~A" dy) (format nil "~A" yr)
+           (format nil "~A" dy) 
+            (format nil "~A" yr)
            (format nil "~2,'0D:~2,'0D:~2,'0D" hr min sec))))
 
+(defun pretty-date-ut (&optional (tm (get-universal-time)))
+  (multiple-value-bind (sec min hr dy mn yr) (decode-universal-time tm)
+    (pretty-date yr mn dy hr min sec)))
 
 (defun date-string (ut)
   (if (typep ut 'integer)
index 75d7f82..8ab57ab 100644 (file)
    #:read-buffered-fields
 
    ;; From datetime.lisp
+   #:pretty-date-ut
    #:pretty-date
    #:date-string
    #:print-float-units