[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 3001c6e 3/4: Use decoded-time accessors in gnus-dem
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 3001c6e 3/4: Use decoded-time accessors in gnus-demon |
Date: |
Thu, 1 Aug 2019 07:48:44 -0400 (EDT) |
branch: master
commit 3001c6eaa878db9e384bfcb499fe483a0dad7430
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Use decoded-time accessors in gnus-demon
* lisp/gnus/gnus-demon.el (gnus-demon-time-to-step): Use
decoded-time accessors for results from `parse-time-string'.
---
lisp/gnus/gnus-demon.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/gnus/gnus-demon.el b/lisp/gnus/gnus-demon.el
index b26aaa1..6007e18 100644
--- a/lisp/gnus/gnus-demon.el
+++ b/lisp/gnus/gnus-demon.el
@@ -173,8 +173,8 @@ marked with SPECIAL."
(nowParts (decode-time now))
;; obtain THEN as discrete components
(thenParts (parse-time-string time))
- (thenHour (elt thenParts 2))
- (thenMin (elt thenParts 1))
+ (thenHour (decoded-time-hour thenParts))
+ (thenMin (decoded-time-minute thenParts))
;; convert time as elements into number of seconds since EPOCH.
(then (encode-time
0