diff --git a/datetime.lisp b/datetime.lisp index 59c1b3e140bdaf969cb36abcdf53313ffb56d214..0346661cff309be2d75acf6480ccced646ab91bd 100644 --- a/datetime.lisp +++ b/datetime.lisp @@ -32,9 +32,13 @@ "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) diff --git a/package.lisp b/package.lisp index 75d7f82e6b9f4594a2b93ec03f6b64794d0430db..8ab57abbce2de7992e6a64c3bd423ed38fc1eef3 100644 --- a/package.lisp +++ b/package.lisp @@ -236,6 +236,7 @@ #:read-buffered-fields ;; From datetime.lisp + #:pretty-date-ut #:pretty-date #:date-string #:print-float-units