From 88bdce982a99238b5320eca4e19d86fd364419ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Knecht?= Date: Thu, 7 Jul 2011 10:55:47 +0200 Subject: [PATCH] doc: note date's %k, %l are space-padded and equivalent to %_H and %_I * src/date.c (usage): As above, for --help. * doc/coreutils.texi (Time conversion specifiers): Likewise. Reported by Britton Leo Kerin in http://bugs.debian.org/115833. --- THANKS.in | 1 + doc/coreutils.texi | 4 ++-- src/date.c | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/THANKS.in b/THANKS.in index 2979d52ce0..87c5b19b6c 100644 --- a/THANKS.in +++ b/THANKS.in @@ -92,6 +92,7 @@ Brian Kimball bfk@footbag.org Brian M. Carlson sandals@crustytoothpaste.ath.cx Brian Silverman bsilverman@conceptxdesign.com Brian Youmans 3diff@gnu.org +Britton Leo Kerin fsblk@aurora.uaf.edu Bruce Robertson brucer@theodolite.dyndns.org Carl Johnson carlj@cjlinux.home.org Carl Lowenstein cdl@mpl.UCSD.EDU diff --git a/doc/coreutils.texi b/doc/coreutils.texi index c59af2f47a..11ac7fd8a4 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -13921,10 +13921,10 @@ hour (@samp{00}@dots{}@samp{23}) @item %I hour (@samp{01}@dots{}@samp{12}) @item %k -hour (@samp{ 0}@dots{}@samp{23}). +hour, space padded (@samp{ 0}@dots{}@samp{23}); equivalent to @samp{%_H}. This is a @acronym{GNU} extension. @item %l -hour (@samp{ 1}@dots{}@samp{12}). +hour, space padded (@samp{ 1}@dots{}@samp{12}); equivalent to @samp{%_I}. This is a @acronym{GNU} extension. @item %M minute (@samp{00}@dots{}@samp{59}) diff --git a/src/date.c b/src/date.c index 6439d165ab..755736ab68 100644 --- a/src/date.c +++ b/src/date.c @@ -179,8 +179,8 @@ FORMAT controls the output. Interpreted sequences are:\n\ %j day of year (001..366)\n\ "), stdout); fputs (_("\ - %k hour ( 0..23)\n\ - %l hour ( 1..12)\n\ + %k hour, space padded ( 0..23); same as %_H\n\ + %l hour, space padded ( 1..12); same as %_I\n\ %m month (01..12)\n\ %M minute (00..59)\n\ "), stdout); -- 2.47.2