[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 3c4eb0d 01/13: Use decoded time accessors in proced
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 3c4eb0d 01/13: Use decoded time accessors in proced |
Date: |
Tue, 30 Jul 2019 07:12:05 -0400 (EDT) |
branch: master
commit 3c4eb0d190ec5d28d5798b346fcde701fd919d1b
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Use decoded time accessors in proced
* lisp/proced.el (proced-format-start): Use decoded time accessors.
---
lisp/proced.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/proced.el b/lisp/proced.el
index b05046b..5f35fa3 100644
--- a/lisp/proced.el
+++ b/lisp/proced.el
@@ -1367,12 +1367,12 @@ Prefix ARG controls sort order, see
`proced-sort-interactive'."
The return string is always 6 characters wide."
(let ((d-start (decode-time start))
(d-current (decode-time)))
- (cond ( ;; process started in previous years
- (< (nth 5 d-start) (nth 5 d-current))
+ (cond (;; process started in previous years
+ (< (decoded-time-year d-start) (decoded-time-year d-current))
(format-time-string " %Y" start))
;; process started today
- ((and (= (nth 3 d-start) (nth 3 d-current))
- (= (nth 4 d-start) (nth 4 d-current)))
+ ((and (= (decoded-time-day d-start) (decoded-time-day d-current))
+ (= (decoded-time-month d-start) (decoded-time-month
d-current)))
(format-time-string " %H:%M" start))
(t ;; process started this year
(format-time-string "%b %e" start)))))
- [Emacs-diffs] master updated (8a30f04 -> 74c5d68), Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master 3c4eb0d 01/13: Use decoded time accessors in proced,
Lars Ingebrigtsen <=
- [Emacs-diffs] master bd3bc1c 05/13: Fix syntax error in previus calc-forms change, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master 9f14c9a 04/13: Use decoded time accessors in calendar, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master e3bbd66 06/13: Use decoded time accessors in appt, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master c859bc0 08/13: Use decoded time accessors in timeclock, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master 4134e6f 12/13: Use decoded time accessors in pop3, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master 608832a 02/13: Use decoded time accessors in calc, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master bd26eff 03/13: Use decoded time accessors in Gnus, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master e9e1b0a 07/13: Use decoded time accessors in time-date, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master 66a74f8 09/13: Use decoded time accessors in timer, Lars Ingebrigtsen, 2019/07/30
- [Emacs-diffs] master bddd4d3 10/13: Use decoded time accessors in in em-ls, Lars Ingebrigtsen, 2019/07/30