summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2021-01-16 14:24:32 -0800
committerOri Bernstein <ori@eigenstate.org>2021-01-16 14:24:32 -0800
commite2e973a34bde34489b49700b364e683b40e3f6c4 (patch)
tree47e767dc285315cf63c866b9ddde63874c956813
parent0f3ef52fd7792c660587bc477668fea55aa8d947 (diff)
downloadplan9front-e2e973a34bde34489b49700b364e683b40e3f6c4.tar.xz
tmdate(2): correct example in manpage
add missing tmdate() call around %τ format.
-rw-r--r--sys/man/2/tmdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/man/2/tmdate b/sys/man/2/tmdate
index 3738b66d1..afb30a0cb 100644
--- a/sys/man/2/tmdate
+++ b/sys/man/2/tmdate
@@ -265,7 +265,7 @@ if(tmparse(&t, "W MMM D hh:mm:ss z YYYY, date, nil) == nil)
print("failed to parse");
t.day++;
tmnorm(&t);
-print("%τ", &t); /* Mon Nov 3 13:11:11 PST 2019 */
+print("%τ", tmfmt(&t, nil)); /* Mon Nov 3 13:11:11 PST 2019 */
.EE
.SH BUGS