summaryrefslogtreecommitdiff
path: root/doc/coreutils.texi
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-10-27 22:02:23 +0200
committerJim Meyering <meyering@redhat.com>2011-10-27 22:02:26 +0200
commit2f1384b7e4674f2bdf4c471eee050bece59e01e6 (patch)
tree369b8f00aeef5c5c66771c1350263abebfccba2d /doc/coreutils.texi
parente8f703c0007ee723e4d449685b48ed623f338f57 (diff)
downloadcoreutils-2f1384b7e4674f2bdf4c471eee050bece59e01e6.tar.xz
date: reinstate the --iso-8601 (-I) option
We deprecated and undocumented the --iso-8601 (-I) option mostly because date could not parse that particular format. Now that it can, it's time to restore the documentation. * src/date.c (usage): Document it. * doc/coreutils.texi (Options for date): Reinstate documentation. Reported by Hubert Depesz Lubaczewski in http://bugs.gnu.org/7444.
Diffstat (limited to 'doc/coreutils.texi')
-rw-r--r--doc/coreutils.texi28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 7b37f60e1..92331945b 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -14262,6 +14262,34 @@ input. This is useful when you have many dates to process, because the
system overhead of starting up the @command{date} executable many times can
be considerable.
+@item -I[@var{timespec}]
+@itemx --iso-8601[=@var{timespec}]
+@opindex -I[@var{timespec}]
+@opindex --iso-8601[=@var{timespec}]
+Display the date using the @acronym{ISO} 8601 format, @samp{%Y-%m-%d}.
+
+The argument @var{timespec} specifies the number of additional
+terms of the time to include. It can be one of the following:
+@table @samp
+@item auto
+Print just the date. This is the default if @var{timespec} is omitted.
+
+@item hours
+Append the hour of the day to the date.
+
+@item minutes
+Append the hours and minutes.
+
+@item seconds
+Append the hours, minutes and seconds.
+
+@item ns
+Append the hours, minutes, seconds and nanoseconds.
+@end table
+
+If showing any time terms, then include the time zone using the format
+@samp{%z}.
+
@item -r @var{file}
@itemx --reference=@var{file}
@opindex -r