summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-05-07 08:59:01 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2023-05-07 09:17:26 -0700
commit7edec89fc324aabef3f27925ccd962b801783324 (patch)
tree250b6ffd847b7fd4c7870350fa6a9983af511941
parentfae65623a92a3f150fd35cfef58dcb3d8533f94c (diff)
downloadcoreutils-7edec89fc324aabef3f27925ccd962b801783324.tar.gz
doc: new subsection for date format specs
* doc/coreutils.texi (Date format specifiers): New subsection, which groups the date format specifiers without otherwise changing contents.
-rw-r--r--doc/coreutils.texi31
1 files changed, 19 insertions, 12 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 260592db2..b7c6bfe42 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -16268,6 +16268,21 @@ Normally, @command{date} uses the time zone rules indicated by the
is not set. @xref{TZ Variable,, Specifying the Time Zone with
@env{TZ}, libc, The GNU C Library Reference Manual}.
+@exitstatus
+
+@menu
+* Date format specifiers:: Used in @samp{date '+...'}
+* Setting the time:: Changing the system clock.
+* Options for date:: Instead of the current time.
+@detailmenu
+* Date input formats:: Specifying date strings.
+@end detailmenu
+* Examples of date:: Examples.
+@end menu
+
+@node Date format specifiers
+@subsection Specifying the format of @command{date} output
+
@findex strftime @r{and @command{date}}
@cindex time formats
@cindex formatting times
@@ -16279,23 +16294,15 @@ conversion specifiers, which start with @samp{%}, characters in the
format string are printed unchanged. The conversion specifiers are
described below.
-@exitstatus
-
@menu
* Time conversion specifiers:: %[HIklMNpPrRsSTXzZ]
* Date conversion specifiers:: %[aAbBcCdDeFgGhjmuUVwWxyY]
* Literal conversion specifiers:: %[%nt]
* Padding and other flags:: Pad with zeros, spaces, etc.
-* Setting the time:: Changing the system clock.
-* Options for date:: Instead of the current time.
-@detailmenu
-* Date input formats:: Specifying date strings.
-@end detailmenu
-* Examples of date:: Examples.
@end menu
@node Time conversion specifiers
-@subsection Time conversion specifiers
+@subsubsection Time conversion specifiers
@cindex time conversion specifiers
@cindex conversion specifiers, time
@@ -16376,7 +16383,7 @@ time zone is determinable. See @samp{%z} for how it is determined.
@node Date conversion specifiers
-@subsection Date conversion specifiers
+@subsubsection Date conversion specifiers
@cindex date conversion specifiers
@cindex conversion specifiers, date
@@ -16467,7 +16474,7 @@ precedes year @samp{0000}.
@node Literal conversion specifiers
-@subsection Literal conversion specifiers
+@subsubsection Literal conversion specifiers
@cindex literal conversion specifiers
@cindex conversion specifiers, literal
@@ -16485,7 +16492,7 @@ a horizontal tab
@node Padding and other flags
-@subsection Padding and other flags
+@subsubsection Padding and other flags
@cindex numeric field padding
@cindex padding of numeric fields