date: %-N now means suppress extra digits
commit0cd39a246af30d141be2676f1b4c1fd6616dfec5
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 31 Dec 2021 08:45:03 +0000 (31 00:45 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 31 Dec 2021 18:53:29 +0000 (31 10:53 -0800)
treef3646a5ec86ad663d4e5a80d65975bc108a6b576
parent64b65cf4b8295cb35f4aa7431f91fccadb327ef6
date: %-N now means suppress extra digits

* NEWS, doc/coreutils.texi: Mention this.
* bootstrap.conf (gnulib_modules): Add gettime-res.
* src/date.c (res_width, adjust_resolution): New functions.
(main): Adjust %-N to be %9N, or whatever, before using it.
NEWS
bootstrap.conf
doc/coreutils.texi
src/date.c