summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-03-12 20:50:47 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-03-12 20:50:47 +0100
commitc28b337c5033124c847662166ca4a3bf67943a4b (patch)
treefe460135d51100e16fcbf1324d7232439c0c41b3
parent1253162e55d3f93d476958907491ef0014777bda (diff)
Format dates.
-rw-r--r--mulkcms.lisp17
1 files changed, 12 insertions, 5 deletions
diff --git a/mulkcms.lisp b/mulkcms.lisp
index f2070a4..bcc2fe8 100644
--- a/mulkcms.lisp
+++ b/mulkcms.lisp
@@ -59,19 +59,26 @@
:directory *templates*))))
(defun format-short-human-date (date)
- ;; FIXME
(multiple-value-bind (year month day hour minute second millisecond)
(decode-timestamp date)
(declare (ignore second millisecond))
- (format nil "~4,'0D-~2,'0D-~2,'0D ~2,'0D:~2,'0D" year month day hour minute)))
+ (format nil "~4,'0D-~2,'0D-~2,'0D ~2,'0D:~2,'0D"
+ year month day hour minute)))
(defun format-human-date (date)
;; FIXME
- "(some date)")
+ (multiple-value-bind (year month day hour minute second millisecond)
+ (decode-timestamp date)
+ (declare (ignore second millisecond))
+ (format nil "~4,'0D-~2,'0D-~2,'0D ~2,'0D:~2,'0D"
+ year month day hour minute)))
(defun format-iso-date (date)
- ;; FIXME
- "(some date)")
+ (multiple-value-bind (year month day hour minute second millisecond)
+ (decode-timestamp date)
+ (declare (ignore millisecond))
+ (format nil "~4,'0D-~2,'0D-~2,'0DT~2,'0D:~2,'0D:~2,'0DZ"
+ year month day hour minute second)))
(defun template (template-name)
(parse-template-string (read-file-into-string (find-template template-name))))