Function: erc-format-timestamp
erc-format-timestamp is a byte-compiled function defined in
erc-stamp.el.gz.
Signature
(erc-format-timestamp TIME FORMAT)
Documentation
Return TIME formatted as string according to FORMAT.
Return the empty string if FORMAT is nil.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-stamp.el.gz
(encode-time decoded))) ; may return an integer
(defun erc-format-timestamp (time format)
"Return TIME formatted as string according to FORMAT.
Return the empty string if FORMAT is nil."
(if format
(let ((ts (format-time-string format time erc-stamp--tz)))
(erc-put-text-property 0 (length ts)
'font-lock-face 'erc-timestamp-face ts)
(when erc-stamp--invisible-property
(erc-put-text-property 0 (length ts) 'invisible
erc-stamp--invisible-property ts))
;; N.B. Later use categories instead of this harmless, but
;; inelegant, hack. -- BPT
(and erc-timestamp-intangible
(not erc-hide-timestamps) ; bug#11706
(erc-put-text-property 0 (length ts) 'cursor-intangible t ts))
ts)
""))