mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-22 18:35:09 +00:00
(archive-dostime): Fix a typo in minutes' computation.
This commit is contained in:
parent
a56ebb9018
commit
70569550f7
@ -1,3 +1,8 @@
|
||||
2001-09-07 Eli Zaretskii <eliz@is.elta.co.il>
|
||||
|
||||
* arc-mode.el (archive-dostime): Fix a typo in minutes'
|
||||
computation.
|
||||
|
||||
2001-09-07 Gerd Moellmann <gerd@gnu.org>
|
||||
|
||||
* server.el (server-switch-buffer): Use get-window-with-predicate.
|
||||
|
@ -447,7 +447,7 @@ the mode is invalid. If ERROR is nil then nil will be returned."
|
||||
(defun archive-dostime (time)
|
||||
"Stringify dos packed TIME record."
|
||||
(let ((hour (logand (ash time -11) 31))
|
||||
(minute (logand (ash time -5) 53))
|
||||
(minute (logand (ash time -5) 63))
|
||||
(second (* 2 (logand time 31)))) ; 2 seconds resolution
|
||||
(format "%02d:%02d:%02d" hour minute second)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user