Function: erc-button-beats-to-time
erc-button-beats-to-time is a byte-compiled function defined in
erc-button.el.gz.
Signature
(erc-button-beats-to-time BEATS)
Documentation
Display BEATS in a readable time format.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-button.el.gz
(defun erc-button-beats-to-time (beats)
"Display BEATS in a readable time format."
(let* ((seconds (- (* (string-to-number beats) 86.4)
3600
(- (car (current-time-zone)))))
(hours (mod (floor seconds 3600) 24))
(minutes (mod (round seconds 60) 60)))
(message "@%s is %d:%02d local time"
beats hours minutes)))