[Bug 2148249] Re: date: strftime ignores flags and widths on %N (nanoseconds)
Daniel Tang
2148249 at bugs.launchpad.net
Sun Apr 26 02:08:35 UTC 2026
*** This bug is a duplicate of bug 2150342 ***
https://bugs.launchpad.net/bugs/2150342
** This bug has been marked a duplicate of bug 2150342
date: width prefix in %N format specifier is ignored ( %3N, %6N always output full 9 nanosecond digits)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2148249
Title:
date: strftime ignores flags and widths on %N (nanoseconds)
Status in rust-coreutils package in Ubuntu:
New
Bug description:
I initially observed this in systemd's test suite. Reproducer:
$ date --version
date (uutils coreutils) 0.7.0
$ date +%s%6N
1776110477753528961
$ gnudate +%s%6N
1776110490234202
Note the different widths, i.e. uutils date ignores the '6' in the
format specifier.
Upstream bug https://github.com/uutils/coreutils/issues/11658
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2148249/+subscriptions
More information about the foundations-bugs
mailing list