diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-07-30 13:08:49 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-07-30 13:08:49 +0200 |
commit | 66a74f841541a9bfa32d34cad9098cee27c58026 (patch) | |
tree | ff7ec1a0cead83fc6879c43d22d016bb80c9e594 /lisp/emacs-lisp/timer.el | |
parent | c859bc07c96484e5f8f31c24a0057a0fcf02a441 (diff) | |
download | emacs-66a74f841541a9bfa32d34cad9098cee27c58026.tar.gz emacs-66a74f841541a9bfa32d34cad9098cee27c58026.tar.bz2 emacs-66a74f841541a9bfa32d34cad9098cee27c58026.zip |
Use decoded time accessors in timer
* lisp/emacs-lisp/timer.el (run-at-time): Use decoded time
accessors.
Diffstat (limited to 'lisp/emacs-lisp/timer.el')
-rw-r--r-- | lisp/emacs-lisp/timer.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/timer.el b/lisp/emacs-lisp/timer.el index 22ccc35103a..400f00a85b5 100644 --- a/lisp/emacs-lisp/timer.el +++ b/lisp/emacs-lisp/timer.el @@ -375,8 +375,11 @@ This function returns a timer object which you can use in (now (decode-time))) (if (>= hhmm 0) (setq time - (encode-time 0 (% hhmm 100) (/ hhmm 100) (nth 3 now) - (nth 4 now) (nth 5 now) (nth 8 now))))))) + (encode-time 0 (% hhmm 100) (/ hhmm 100) + (decoded-time-day now) + (decoded-time-month now) + (decoded-time-year now) + (decoded-time-zone now))))))) (or (consp time) (error "Invalid time format")) |