[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[coreutils] Re: [PATCH 2/2] stat: print timestamps to full resolution

From: Andreas Schwab
Subject: [coreutils] Re: [PATCH 2/2] stat: print timestamps to full resolution
Date: Thu, 21 Oct 2010 00:57:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Eric Blake <address@hidden> writes:

> * src/stat.c (epoch_time): New function.
> (print_stat): Use it for %[WXYZ].
> * NEWS: Document this.
> * tests/touch/60-seconds: Adjust test to match.
> ---
> It bugs me that %x has more information than %X in 'stat --format',
> especially, since we don't support any format modifiers for getting
> at the additional information.  We're already incompatible with
> BSD stat(1) format modifiers, and there is no standard for stat(1),
> so I wasn't too worried about changing the meaning of existing
> modifiers rather than burning new letters just for the nanosecond
> portions.  And now that POSIX 2008 requires nanonsecond resolution
> in stat(2), you could argue that we should always be displaying it.

There are a lot of scripts that assume whole integer output from
%[WXYZ].  It would have been better to make this optional and


Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]