Function: time-stamp-do-number
time-stamp-do-number is a byte-compiled function defined in
time-stamp.el.gz.
Signature
(time-stamp-do-number FORMAT-CHAR COLON-COUNT FIELD-WIDTH TIME)
Documentation
Handle a FORMAT-CHAR mostly compatible with format-time-string.
The default width/padding may be different from format-time-string.
COLON-COUNT is non-0 if ":" was specified. FIELD-WIDTH is the string
width specification or "". TIME is the time to convert.
This is an internal helper for time-stamp-string-preprocess.
Source Code
;; Defined in /usr/src/emacs/lisp/time-stamp.el.gz
(defun time-stamp-do-number (format-char colon-count field-width time)
"Handle a FORMAT-CHAR mostly compatible with `format-time-string'.
The default width/padding may be different from `format-time-string'.
COLON-COUNT is non-0 if \":\" was specified. FIELD-WIDTH is the string
width specification or \"\". TIME is the time to convert.
This is an internal helper for `time-stamp-string-preprocess'."
(let ((format-string (concat "%" (char-to-string format-char))))
(if (and (> colon-count 0) (not (string-equal field-width "")))
"" ;discourage "%:2d" and the like
(string-to-number (time-stamp--format format-string time)))))