GNU bug report logs - #40586
date and '%-N' does not appear to remove leading zeros anymore, but trailing zeros.

Previous Next

Package: coreutils;

Reported by: Drake Jacovian <gnu.org <at> infernalbeast.com>

Date: Sun, 12 Apr 2020 22:08:02 UTC

Severity: normal

Full log


Message #11 received at 40586 <at> debbugs.gnu.org (full text, mbox):

From: joerg.boehmer <at> snafu.de
To: 40586 <at> debbugs.gnu.org
Subject: Re: bug#40586: date and '%-N' does not appear to remove leading zeros
 anymore, but trailing zeros.
Date: Thu, 14 Apr 2022 18:48:11 +0200
> %-N is intended to be used after a decimal point...

Please note this intention in the man-page. The current man-page:

%N     nanoseconds (000000000..999999999)

The current description gives the impression that nanoseconds are an 
integral quantity like seconds and minutes. This leads the user to 
assume that leading zeros are being removed.




This bug report was last modified 3 years and 125 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.