Linux-man Archive on lore.kernel.org
 help / color / Atom feed
From: Eugene Syromyatnikov <evgsyr@gmail.com>
To: mtk.manpages@gmail.com
Cc: linux-man@vger.kernel.org
Subject: [PATCH] nl_langinfo.3: mention the respective strftime conversion specifications
Date: Fri, 14 Feb 2020 16:28:43 +0100
Message-ID: <d36e8402f69fc6d8b58d5441cc767a168bb3a155.1581693625.git.evgsyr@gmail.com> (raw)
In-Reply-To: <cover.1581693624.git.evgsyr@gmail.com>

* man3/nl_langinfo.3 (D_T_FMT, D_FMT, T_FMT, DAY_{1–7}, ABDAY_{1–7},
MON_{1–12}, ABMON_{1–12}): Mention the respective strftime(3) conversion
specifications.

Signed-off-by: Eugene Syromyatnikov <evgsyr@gmail.com>
---
 man3/nl_langinfo.3 | 28 +++++++++++++++++++++++++---
 1 file changed, 25 insertions(+), 3 deletions(-)

diff --git a/man3/nl_langinfo.3 b/man3/nl_langinfo.3
index 8c0742f..ecc1954 100644
--- a/man3/nl_langinfo.3
+++ b/man3/nl_langinfo.3
@@ -78,31 +78,53 @@ try "locale \-m" (see
 .BR D_T_FMT \ (LC_TIME)
 Return a string that can be used as a format string for
 .BR strftime (3)
-to represent time and date in a locale-specific way.
+to represent time and date in a locale-specific way
+.RB ( %c
+conversion specification).
 .TP
 .BR D_FMT \ (LC_TIME)
 Return a string that can be used as a format string for
 .BR strftime (3)
-to represent a date in a locale-specific way.
+to represent a date in a locale-specific way
+.RB ( %x
+conversion specification).
 .TP
 .BR T_FMT \ (LC_TIME)
 Return a string that can be used as a format string for
 .BR strftime (3)
-to represent a time in a locale-specific way.
+to represent a time in a locale-specific way
+.RB ( %X
+conversion specification).
 .TP
 .BR DAY_ "{1\(en7} (LC_TIME)"
 Return name of the \fIn\fP-th day of the week. [Warning: this follows
 the US convention DAY_1 = Sunday, not the international convention
 (ISO 8601) that Monday is the first day of the week.]
+(Used in
+.B %A
+.BR strftime (3)
+conversion specification.)
 .TP
 .BR ABDAY_ "{1\(en7} (LC_TIME)"
 Return abbreviated name of the \fIn\fP-th day of the week.
+(Used in
+.B %a
+.BR strftime (3)
+conversion specification.)
 .TP
 .BR MON_ "{1\(en12} (LC_TIME)"
 Return name of the \fIn\fP-th month.
+(Used in
+.B %B
+.BR strftime (3)
+conversion specification.)
 .TP
 .BR ABMON_ "{1\(en12} (LC_TIME)"
 Return abbreviated name of the \fIn\fP-th month.
+(Used in
+.B %b
+.BR strftime (3)
+conversion specification.)
 .TP
 .BR RADIXCHAR \ (LC_NUMERIC)
 Return radix character (decimal dot, decimal comma, etc.).
-- 
2.1.4


  reply index

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-14 15:28 [PATCH] Some stftime.3 and nl_langinfo.3 updates Eugene Syromyatnikov
2020-02-14 15:28 ` Eugene Syromyatnikov [this message]
2020-02-23 21:14   ` [PATCH] nl_langinfo.3: mention the respective strftime conversion specifications Michael Kerrisk (man-pages)
2020-02-14 15:28 ` [PATCH] nl_langinfo.3: add information about AM/PM time format locale elements Eugene Syromyatnikov
2020-02-23 21:15   ` Michael Kerrisk (man-pages)
2020-02-14 15:28 ` [PATCH] nl_langinfo.3: document era-related " Eugene Syromyatnikov
2020-02-23 21:23   ` Michael Kerrisk (man-pages)
2020-02-14 15:28 ` [PATCH] strftime.3: ffix Eugene Syromyatnikov
2020-02-23 21:26   ` Michael Kerrisk (man-pages)
2020-02-14 15:28 ` [PATCH] strftime.3: consistently document fall-back format string Eugene Syromyatnikov
2020-02-23 21:27   ` Michael Kerrisk (man-pages)
2020-02-14 15:29 ` [PATCH] strftime.3: refer to the relevant nl_langinfo items Eugene Syromyatnikov
2020-02-23 21:32   ` Michael Kerrisk (man-pages)
2020-02-14 15:29 ` [PATCH] strftime.3: expand %E and %O description Eugene Syromyatnikov
2020-02-23 21:43   ` Michael Kerrisk (man-pages)

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d36e8402f69fc6d8b58d5441cc767a168bb3a155.1581693625.git.evgsyr@gmail.com \
    --to=evgsyr@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git