From: nihilazo <nico@itwont.work>
To: 9front@9front.org
Subject: [9front] Document -f option of `date` command (patch)
Date: Thu, 17 Jun 2021 19:02:48 +0100 [thread overview]
Message-ID: <baaf6e42-a942-c2f6-455a-7c22d9324a5a@itwont.work> (raw)
This is the first time I've ever submitted a patch to 9front so please
tell me if I've got anything wrong! I couldn't find a style guide for
manpages so I copied how existing ones were formatted the best I can.
---
//.git/fs/object/1da1ac52d201bdc6656b91a4b1792581120b2d09/tree/sys/man/1/date
+++ sys/man/1/date
@@ -6,6 +6,9 @@
[
.I option
] [
+.B -f
+.I format
+] [
.I seconds
]
.br
@@ -16,6 +19,8 @@
.B
Tue Aug 16 17:03:52 CDT 1977
.PP
+Or the format specified by the format option.
+
The options are
.TP
.B -u
@@ -33,6 +38,13 @@
.TP
.B -m
Report the date as an email compatible (RFC2822) time stamp.
+.TP
+.B -f
+Print using the format specified by the
+.I format
+string rather than the default. Format strings are in the format used by
+.IR tmdate (2)
+
.PP
The conversion from Greenwich Mean Time to local time depends on the
.B $timezone
@@ -65,3 +77,5 @@
.B /sys/src/cmd/date.c
.br
.B /sys/src/cmd/clock.c
+.SH "SEE ALSO"
+.IR tmdate (2)
next reply other threads:[~2021-06-18 10:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-17 18:02 nihilazo [this message]
2021-06-17 21:24 ` ori
2021-06-18 7:30 ` nihilazo
Reply instructions:
You may reply publicly 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=baaf6e42-a942-c2f6-455a-7c22d9324a5a@itwont.work \
--to=nico@itwont.work \
--cc=9front@9front.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).