GNU bug report logs -
#29589
date %k adds extra space for single digits hours
Previous Next
Reported by: Noam Arad <noam.arad <at> kaltura.com>
Date: Wed, 6 Dec 2017 16:39:01 UTC
Severity: normal
Tags: notabug
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #16 received at control <at> debbugs.gnu.org (full text, mbox):
tags 29589 notabug
close 29589
stop
(triaging old bugs)
From: Bishop Bettini [mailto:bishop.bettini <at> gmail.com]
> On Wed, Dec 6, 2017 at 4:17 AM, Noam Arad wrote:
> When using date command with the format %k if the hour is single digits there is an extra space added.
> E.g.: date -u +"%Y/%m/%d %k:%M:%S" when run at "2017/12/06 9:16:26" will give the output "2017/12/06 9:16:26"
> NOTE: there are two spaces between "06" and "9".
>
> This seems expected. Per the documentation as of GNU coreutils 8.22:
>
> %k hour, space padded ( 0..23); same as %_H
>
On 2017-12-06 11:55 a.m., Noam Arad wrote:
> Thanks for the quick reply. Will use your suggestions.
Given the above, I'm closing this bug.
Discussion can continue by replying to this thread.
-assaf
This bug report was last modified 6 years and 201 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.