From: Assaf Gordon Date: Mon, 21 Apr 2014 18:31:23 +0000 (-0400) Subject: doc: clarify meaning of stat's mtime and ctime formats X-Git-Tag: v8.23~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea55db1a2348a539741d7ae80e88b772ed2d6757;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 6c49385e13..b21a4fd83b 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 fffebe3b63..7d43eb5551 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);