format-spec

format-spec is a compiled Lisp function in `format-spec.el'.

(format-spec FORMAT SPECIFICATION)

Return a string based on FORMAT and SPECIFICATION.
FORMAT is a string containing `format'-like specs like "bash %u %k",
while SPECIFICATION is an alist mapping from format spec characters
to values. Any text properties on a %-spec itself are propagated to
the text that it generates.