summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-01-16 07:53:19 +0000
committerJim Meyering <jim@meyering.net>2004-01-16 07:53:19 +0000
commit7430e918cb579aa0d340e12b7dfe003d7dca6746 (patch)
tree96f94a1a27225a6e6e356b311a2ab51d2653c666 /doc
parent99ce232e0cd4b724780860f5f9b362918a44143e (diff)
downloadcoreutils-7430e918cb579aa0d340e12b7dfe003d7dca6746.tar.xz
(touch invocation): touch -r and -d can now
both be specified, with -r specifying the origin for -d.
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 416111823..aace0f88f 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -8126,6 +8126,11 @@ Change the modification time only.
@opindex -r
@opindex --reference
Use the times of the reference @var{file} instead of the current time.
+If this option is combined with the @option{--date=@var{time}}
+(@option{-d @var{time}}) option, the reference @var{file}'s time is
+the origin for any relative @var{time}s given, but is otherwise ignored.
+For example, @samp{-r foo -d '-5 seconds'} specifies a time stamp
+equal to five seconds before the corresponding time stamp for @file{foo}.
@item -t [[CC]YY]MMDDhhmm[.ss]
Use the argument (optional four-digit or two-digit years, months,