summaryrefslogtreecommitdiff
path: root/src/date.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2016-10-19 14:57:57 -0700
committerPádraig Brady <P@draigBrady.com>2016-11-07 17:09:15 +0000
commit30012b290facf66551cdf395ace397903d00483d (patch)
tree6fcc03436b7a10a2002ce03d9573689218d5e55c /src/date.c
parent7ba9355d0aec01a005164b02f7bdc8e67c430315 (diff)
downloadcoreutils-30012b290facf66551cdf395ace397903d00483d.tar.xz
date: add %q to output the quarter of the year
* doc/coreutils.texi (date invocation): Document %q. * src/date.c (usage): Likewise. * tests/misc/date.pl: Add a test case. * cfg.mk (sc_strftime_check): Adjust to allow %q. * NEWS: Mention the new feature.
Diffstat (limited to 'src/date.c')
-rw-r--r--src/date.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/date.c b/src/date.c
index 9598fc6ea..ddb011e65 100644
--- a/src/date.c
+++ b/src/date.c
@@ -214,6 +214,7 @@ FORMAT controls the output. Interpreted sequences are:\n\
%N nanoseconds (000000000..999999999)\n\
%p locale's equivalent of either AM or PM; blank if not known\n\
%P like %p, but lower case\n\
+ %q quarter of year (1..4)\n\
%r locale's 12-hour clock time (e.g., 11:11:04 PM)\n\
%R 24-hour hour and minute; same as %H:%M\n\
%s seconds since 1970-01-01 00:00:00 UTC\n\