summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2014-04-21 14:31:23 -0400
committerPádraig Brady <P@draigBrady.com>2014-04-22 16:53:47 +0100
commitea55db1a2348a539741d7ae80e88b772ed2d6757 (patch)
treed43b20bfd0a19f303ff5c81f7ca09a86447c6f9c
parent14613e2fd132a1e252849cd881706bca8428f9f9 (diff)
downloadcoreutils-ea55db1a2348a539741d7ae80e88b772ed2d6757.tar.xz
doc: clarify meaning of stat's mtime and ctime formats
* src/stat.c (usage): s/modification time/data modification time/; s/change time/status change time/ * doc/coreutils.texi: Ditto.
-rw-r--r--doc/coreutils.texi8
-rw-r--r--src/stat.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 6c49385e1..b21a4fd83 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -11829,10 +11829,10 @@ The valid @var{format} directives for files with @option{--format} and
@item %W - Time of file birth as seconds since Epoch, or @samp{0}
@item %x - Time of last access
@item %X - Time of last access as seconds since Epoch
-@item %y - Time of last modification
-@item %Y - Time of last modification as seconds since Epoch
-@item %z - Time of last change
-@item %Z - Time of last change as seconds since Epoch
+@item %y - Time of last data modification
+@item %Y - Time of last data modification as seconds since Epoch
+@item %z - Time of last status change
+@item %Z - Time of last status change as seconds since Epoch
@end itemize
The @samp{%t} and @samp{%T} formats operate on the st_rdev member of
diff --git a/src/stat.c b/src/stat.c
index fffebe3b6..7d43eb555 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -1457,10 +1457,10 @@ The valid format sequences for files (without --file-system):\n\
%W time of file birth, seconds since Epoch; 0 if unknown\n\
%x time of last access, human-readable\n\
%X time of last access, seconds since Epoch\n\
- %y time of last modification, human-readable\n\
- %Y time of last modification, seconds since Epoch\n\
- %z time of last change, human-readable\n\
- %Z time of last change, seconds since Epoch\n\
+ %y time of last data modification, human-readable\n\
+ %Y time of last data modification, seconds since Epoch\n\
+ %z time of last status change, human-readable\n\
+ %Z time of last status change, seconds since Epoch\n\
\n\
"), stdout);