summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-11-13 08:02:02 +0100
committerJim Meyering <meyering@redhat.com>2010-11-13 11:40:52 +0100
commit4a8e9bf14c33b356680298d29f7321d82d4fde5d (patch)
treec0c1501d5338c49629364c24350166ac79396d92 /doc
parent6568b173db1c98f39a53eadd9b09e0a0e5c11920 (diff)
downloadcoreutils-4a8e9bf14c33b356680298d29f7321d82d4fde5d.tar.xz
stat: do not provide variable precision time stamps
* src/stat.c: Don't include fstimeprec.c. (out_epoch_sec): Don't call fstimeprec. * NEWS: Update description. * doc/coreutils.texi: Likewise.
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index ce56b0e5e..6a4257f61 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -10718,10 +10718,10 @@ The valid @var{format} directives for files with @option{--format} and
The @samp{%W}, @samp{%X}, @samp{%Y}, and @samp{%Z} formats accept a
precision preceded by a period to specify the number of digits to
-print after the decimal point. For example, @samp{%.9X} outputs the
-last access time to nanosecond precision. If a period is given but no
-precision, @command{stat} uses the estimated precision of the file
-system. When discarding excess precision, time stamps are truncated
+print after the decimal point. For example, @samp{%.3X} outputs the
+last access time to millisecond precision. If a period is given but no
+precision, @command{stat} uses 9 digits, so @samp{%.X} is equivalent to
+@samp{%.9X} When discarding excess precision, time stamps are truncated
toward minus infinity.
@example
@@ -10737,7 +10737,7 @@ precision:
$ stat -c '[%.3Y]' /usr
[1288929712.114]
$ stat -c '[%.Y]' /usr
- [1288929712.114951]
+ [1288929712.114951834]
@end example
The mount point printed by @samp{%m} is similar to that output