]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: fix somewhat ambiguous date format representation
authorPádraig Brady <P@draigBrady.com>
Sat, 5 Feb 2022 12:47:33 +0000 (12:47 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 5 Feb 2022 12:53:19 +0000 (12:53 +0000)
* 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{}.

doc/coreutils.texi

index d3bbf57687924a87c7983254d5ba6fa349fd121e..75b86821955f2dd4614e530149eced0ac0a6e47d 100644 (file)
@@ -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