* [9front] Document -f option of `date` command (patch)
@ 2021-06-17 18:02 nihilazo
2021-06-17 21:24 ` ori
0 siblings, 1 reply; 3+ messages in thread
From: nihilazo @ 2021-06-17 18:02 UTC (permalink / raw)
To: 9front
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] Document -f option of `date` command (patch)
2021-06-17 18:02 [9front] Document -f option of `date` command (patch) nihilazo
@ 2021-06-17 21:24 ` ori
2021-06-18 7:30 ` nihilazo
0 siblings, 1 reply; 3+ messages in thread
From: ori @ 2021-06-17 21:24 UTC (permalink / raw)
To: 9front
Quoth nihilazo <nico@itwont.work>:
> 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.
Applied, thanks.
But -- for some reason your mail client mangled the
patch a bit; the lines that started with spaces had a
spare space perpended.
Not sure if there's a client setting you need to
change, or if you just need to attach next time.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9front] Document -f option of `date` command (patch)
2021-06-17 21:24 ` ori
@ 2021-06-18 7:30 ` nihilazo
0 siblings, 0 replies; 3+ messages in thread
From: nihilazo @ 2021-06-18 7:30 UTC (permalink / raw)
To: 9front
On 17/06/2021 22:24, ori@eigenstate.org wrote:
> Quoth nihilazo <nico@itwont.work>:
>> 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.
>
> Applied, thanks.
>
> But -- for some reason your mail client mangled the
> patch a bit; the lines that started with spaces had a
> spare space perpended.
>
> Not sure if there's a client setting you need to
> change, or if you just need to attach next time.
>
ah, sorry. I'll attach next time - thunderbird is weird and I haven't
found a better mail client yet
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-18 10:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-17 18:02 [9front] Document -f option of `date` command (patch) nihilazo
2021-06-17 21:24 ` ori
2021-06-18 7:30 ` nihilazo
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).