projects
/
clsql.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r10789: Automated commit for Debian build of clsql upstream-version-3.3.1
[clsql.git]
/
sql
/
time.lisp
diff --git
a/sql/time.lisp
b/sql/time.lisp
index 0f8d5e235f0e75ad6fc4fd7787aacf8b721f35c9..95a7a683de6d7caa9bb0a154493419ab8b64dcfd 100644
(file)
--- a/
sql/time.lisp
+++ b/
sql/time.lisp
@@
-67,7
+67,9
@@
(defun %print-wall-time (time stream depth)
(declare (ignore depth))
(defun %print-wall-time (time stream depth)
(declare (ignore depth))
- (format stream "#<WALL-TIME: ~a>" (format-time nil time)))
+ (if *print-escape*
+ (format stream "#<WALL-TIME: ~a>" (format-time nil time))
+ (format-time stream time :format :pretty)))
(defstruct (duration (:constructor %make-duration)
(:print-function %print-duration))
(defstruct (duration (:constructor %make-duration)
(:print-function %print-duration))
@@
-81,8
+83,10
@@
(defun %print-duration (duration stream depth)
(declare (ignore depth))
(defun %print-duration (duration stream depth)
(declare (ignore depth))
- (format stream "#<DURATION: ~a>"
- (format-duration nil duration :precision :second)))
+ (if *print-escape*
+ (format stream "#<DURATION: ~a>"
+ (format-duration nil duration :precision :second))
+ (format-duration stream duration :precision :second)))
(defstruct (date (:constructor %make-date)
(:print-function %print-date))
(defstruct (date (:constructor %make-date)
(:print-function %print-date))
@@
-90,7
+94,9
@@
(defun %print-date (date stream depth)
(declare (ignore depth))
(defun %print-date (date stream depth)
(declare (ignore depth))
- (format stream "#<DATE: ~a>" (format-date nil date)))
+ (if *print-escape*
+ (format stream "#<DATE: ~a>" (format-date nil date))
+ (format-date stream date :format :pretty)))
);eval-when
);eval-when