From 7edec89fc324aabef3f27925ccd962b801783324 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 7 May 2023 08:59:01 -0700 Subject: 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. --- doc/coreutils.texi | 31 +++++++++++++++++++------------ 1 file 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 -- cgit v1.2.1