The help output and man page mention that "by default, date pads numeric fields with zeroes," yet the description of %k and %l didn't specify that these values were space padded, whereas the description of %e did.
Fixes <http://bugs.debian.org/115833>. --- Hi, If anyone is still interested in fixing this bug, here's a trivial patch that amends the documentation of date accordingly. Otherwise, feel free to close this bug as won't fix. -- Benoît Knecht --- src/date.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/date.c b/src/date.c index 6439d16..755736a 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); -- 1.7.5.4 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org