mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(calendar-absolute-from-time): Fix typo by interchanging (floor) and (%).
This commit is contained in:
parent
4de97979a2
commit
1b41c5d14d
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ absolute date ABS-DATE is the equivalent moment to X."
|
|||
;; floor((2^16 h +l) / (60*60*24))
|
||||
(* 512 (floor h 675)) (floor u 675))
|
||||
;; (2^16 h +l) % (60*60*24)
|
||||
(+ (* (mod u 675) 128) (mod l 128)))))
|
||||
(+ (* (% u 675) 128) (% l 128)))))
|
||||
|
||||
(defun calendar-time-from-absolute (abs-date s)
|
||||
"Time of absolute date ABS-DATE, S seconds after midnight.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue