X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Ftime.lisp;h=554bc17984fa5c1931706b632eb8eaf8dcb3b079;hb=6a86cd362b2b952c9a819dea1df43efd3fd8bab3;hp=32c10b70227f3dfc1950d3a459b8f1b1e506677d;hpb=e567409d9fff3f7231c2a0bb69b345e19de2b246;p=clsql.git diff --git a/sql/time.lisp b/sql/time.lisp index 32c10b7..554bc17 100644 --- a/sql/time.lisp +++ b/sql/time.lisp @@ -1,8 +1,6 @@ ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*- ;;;; ************************************************************************* ;;;; -;;;; $Id$ -;;;; ;;;; A variety of structures and function for creating and ;;;; manipulating dates, times, durations and intervals for ;;;; CLSQL. @@ -1073,10 +1071,9 @@ with the given options" (setf (time-mjd date) (time-mjd new-date)) (setq date new-date)))))) (let ((mjd (time-mjd date)) - (sec (time-second date)) - (usec (time-usec date))) + (sec (time-second date))) (multiple-value-bind (sec-new usec-new) - (floor (+ usec + (floor (+ usec (time-usec date) (* 1000000 (+ sec second (* 60 minute) @@ -1251,8 +1248,9 @@ Will throw a hissy fit if the date string is a duration. Will ignore any precisi (index (length string)) (months/minutes nil)) (loop - (multiple-value-bind (duration next-index duration-type) + (multiple-value-bind (duration end next-index duration-type) (iso-8601-duration-subseq string index) + (declare (ignore end)) (case duration-type (:years (incf years duration))