Document format-time-string %q

* doc/lispref/os.texi (Time Parsing):
* etc/NEWS: Document new %q functionality taken from gnulib.
This commit is contained in:
Paul Eggert 2016-11-19 16:15:29 -08:00
parent bbd84f86bc
commit b81bb485ea
2 changed files with 5 additions and 0 deletions

View file

@ -1525,6 +1525,8 @@ fewer digits, use @samp{%3N} for milliseconds, @samp{%6N} for
microseconds, etc. Any excess digits are discarded, without rounding.
@item %p
This stands for @samp{AM} or @samp{PM}, as appropriate.
@item %q
This stands for the calendar quarter (1--4).
@item %r
This is a synonym for @samp{%I:%M:%S %p}.
@item %R

View file

@ -689,6 +689,9 @@ ABBR is a time zone abbreviation. The affected functions are
'current-time-string', 'current-time-zone', 'decode-time',
'format-time-string', and 'set-time-zone-rule'.
+++
** 'format-time-string' now formats "%q" to the calendar quarter.
** New built-in function 'mapcan' which avoids unnecessary consing (and garbage
collection).