From: Pádraig Brady Date: Sat, 5 Feb 2022 12:47:33 +0000 (+0000) Subject: doc: fix somewhat ambiguous date format representation X-Git-Tag: v9.1~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b52d66452d2d793ce00ace06228c922caa12803b;p=thirdparty%2Fcoreutils.git doc: fix somewhat ambiguous date format representation * doc/coreutils.texi (date invocation): Remove @var{...} usage, as that capitalizes in the representation and thus somewhat ambiguates the format wrt Month and Minute. This also avoids a syntax check failure about redundant capitalization in @var{}. --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index d3bbf57687..75b8682195 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -15976,12 +15976,12 @@ Synopses: @example date [@var{option}]@dots{} [+@var{format}] date [-u|--utc|--universal] @c this avoids a newline in the output -[@var{MMDDhhmm}[[@var{CC}]@var{YY}][.@var{ss}]] +[ MMDDhhmm[[CC]YY][.ss] ] @end example The @command{date} command displays the date and time. With the @option{--set} (@option{-s}) option, or with -@samp{[@var{MMDDhhmm}[[@var{CC}]@var{YY}][.@var{ss}]]}, +@samp{MMDDhhmm[[CC]YY][.ss]}, it sets the date and time. @vindex LC_TIME @@ -16325,7 +16325,7 @@ might not happen automatically on your system. To set the clock, you can use the @option{--set} (@option{-s}) option (@pxref{Options for date}). To set the clock without using GNU extensions, you can give @command{date} an argument of the form -@samp{@var{MMDDhhmm}[[@var{CC}]@var{YY}][.@var{ss}]} where each two-letter +@samp{MMDDhhmm[[CC]YY][.ss]} where each two-letter component stands for two digits with the following meanings: @table @var