freebsd-src/bin/date
Dag-Erling Smørgrav 38839c872e date: Improve nanosecond support
Add support for a field width, which defaults to 9 if unspecified or
zero.  If the width is not exactly 9, we have to either cut off digits
or append zeroes to make up the difference.  If the width is a dash,
we pick a width based on the clock's reported resolution.  This brings
us in line with GNU coreutils.

PR:		287080
MFC after:	1 week
Reviewed by:	0mp
Differential Revision:	https://reviews.freebsd.org/D53667
2025-11-11 15:58:35 +01:00
..
tests date: Improve nanosecond support 2025-11-11 15:58:35 +01:00
date.1 date: Improve nanosecond support 2025-11-11 15:58:35 +01:00
date.c date: Improve nanosecond support 2025-11-11 15:58:35 +01:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
vary.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
vary.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00