summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-03-10 07:53:35 +0000
committerJim Meyering <jim@meyering.net>2001-03-10 07:53:35 +0000
commite489a18ead084094a3910b8bfd5b391154a0611a (patch)
tree286177c10422c5e44e97fd1c3324f10d246801fe /doc
parent7ee6f9593d3f8bae33f76a9634b6eb761b96a312 (diff)
downloadcoreutils-e489a18ead084094a3910b8bfd5b391154a0611a.tar.xz
(date invocation): Correct the description of how
date works when given no format. Reported by Ole Laursen.
Diffstat (limited to 'doc')
-rw-r--r--doc/sh-utils.texi6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/sh-utils.texi b/doc/sh-utils.texi
index 1f5192882..8481dcd0e 100644
--- a/doc/sh-utils.texi
+++ b/doc/sh-utils.texi
@@ -2198,8 +2198,7 @@ information.
@cindex time, printing or setting
@cindex printing the current time
-@code{date} with no arguments prints the current time and date, in the
-format of the @samp{%c} directive (described below). Synopses:
+Synopses:
@example
date [@var{option}]@dots{} [+@var{format}]
@@ -2207,6 +2206,9 @@ date [-u|--utc|--universal] @c this avoids a newline in the output
[ MMDDhhmm[[CC]YY][.ss] ]
@end example
+Invoking @code{date} with no arguments is equivalent to invoking
+@samp{date '+%a %b %e %H:%M:%S %Z %Y'}.
+
@findex strftime @r{and @code{date}}
@cindex time formats
@cindex formatting times