* lisp/calendar/timeclock.el (timeclock-day-base): Use decoded time
accessors.
"Given a time within a day, return 0:0:0 within that day.
If optional argument TIME is non-nil, use that instead of the current time."
(let ((decoded (decode-time time)))
- (setcar (nthcdr 0 decoded) 0)
- (setcar (nthcdr 1 decoded) 0)
- (setcar (nthcdr 2 decoded) 0)
+ (setf (decoded-time-second decoded) 0)
+ (setf (decoded-time-minute decoded) 0)
+ (setf (decoded-time-hour decoded) 0)
(encode-time decoded)))
(defun timeclock-mean (l)