aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-07-30 13:02:41 +0200
committerLars Ingebrigtsen2019-07-30 13:02:41 +0200
commit3c4eb0d190ec5d28d5798b346fcde701fd919d1b (patch)
treec939246aee1031aa9bce17805b701371fb4f3608
parent8a30f0414ec4145ca3684639c6ce1edeeb3f3331 (diff)
downloademacs-3c4eb0d190ec5d28d5798b346fcde701fd919d1b.tar.gz
emacs-3c4eb0d190ec5d28d5798b346fcde701fd919d1b.zip
Use decoded time accessors in proced
* lisp/proced.el (proced-format-start): Use decoded time accessors.
-rw-r--r--lisp/proced.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/proced.el b/lisp/proced.el
index b05046bfbd3..5f35fa34a07 100644
--- a/lisp/proced.el
+++ b/lisp/proced.el
@@ -1367,12 +1367,12 @@ Prefix ARG controls sort order, see `proced-sort-interactive'."
1367The return string is always 6 characters wide." 1367The return string is always 6 characters wide."
1368 (let ((d-start (decode-time start)) 1368 (let ((d-start (decode-time start))
1369 (d-current (decode-time))) 1369 (d-current (decode-time)))
1370 (cond ( ;; process started in previous years 1370 (cond (;; process started in previous years
1371 (< (nth 5 d-start) (nth 5 d-current)) 1371 (< (decoded-time-year d-start) (decoded-time-year d-current))
1372 (format-time-string " %Y" start)) 1372 (format-time-string " %Y" start))
1373 ;; process started today 1373 ;; process started today
1374 ((and (= (nth 3 d-start) (nth 3 d-current)) 1374 ((and (= (decoded-time-day d-start) (decoded-time-day d-current))
1375 (= (nth 4 d-start) (nth 4 d-current))) 1375 (= (decoded-time-month d-start) (decoded-time-month d-current)))
1376 (format-time-string " %H:%M" start)) 1376 (format-time-string " %H:%M" start))
1377 (t ;; process started this year 1377 (t ;; process started this year
1378 (format-time-string "%b %e" start))))) 1378 (format-time-string "%b %e" start)))))