Document format-time-string %q
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 20 Nov 2016 00:15:29 +0000 (16:15 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 20 Nov 2016 00:16:42 +0000 (16:16 -0800)
* doc/lispref/os.texi (Time Parsing):
* etc/NEWS: Document new %q functionality taken from gnulib.

doc/lispref/os.texi
etc/NEWS

index 616d1e7ab3acea85bb4fad5689e707fc0fc484ea..3b649d20cd482a628c505c6e1b1878a0261b16da 100644 (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
index bd83c6028c074f45f932fcc75b62c194c02ddce7..21cda7c6b0a4d8c3742b909bd02a43cc21cf6b44 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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).