[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] nstrftime: better width support for %N, %z
From: |
Bruno Haible |
Subject: |
Re: [PATCH] nstrftime: better width support for %N, %z |
Date: |
Thu, 21 May 2020 15:40:31 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; ) |
Hi Paul,
> > If the change is intended, the documentation of `date` should be updated
>
> Thanks for mentioning this. The change was intended, and I installed the
> attached patch into the Coreutils documentation.
Where is %N of nstrftime documented? I don't see it documented in POSIX [1],
in the glibc manual [2], in the Linux manual pages [3], nor in the Gnulib
manual. I don't think the coreutils 'date' documentation is or should be
the reference manual for nstrftime().
lib/strftime.h is also rather unprecise: It only says
Use __NS as the number of nanoseconds in the %N directive.
IMO it would make sense to document it in a separate node of the Gnulib
documentation.
Bruno
[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html
[2]
https://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html
[3] http://man7.org/linux/man-pages/man3/strftime.3.html