[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#40586: date and '%-N' does not appear to remove leading zeros anymor
From: |
Paul Eggert |
Subject: |
bug#40586: date and '%-N' does not appear to remove leading zeros anymore, but trailing zeros. |
Date: |
Thu, 14 Apr 2022 15:10:36 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 |
On 4/14/22 09:48, joerg.boehmer@snafu.de wrote:
%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.
Similar wording is used elsewhere:
%M minute (00..59)
%m month (01..12)
%H hour (00..23)
%W week number of year, with Monday as first day of week (00..53)
It's true that nanoseconds are more complicated than the others.
However, it's not clear whether all the little details need to be in the
man page, or how to summarize those details concisely.