(archive-dostime): Fix a typo in minutes' computation.
This commit is contained in:
parent
a56ebb9018
commit
70569550f7
2 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue