about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2020-10-24 13:45:08 +0200
committerMikael Magnusson <mikachu@gmail.com>2020-10-25 23:06:02 +0100
commit8773f01f2b7a908af70dc06d7d00481f1c9bec44 (patch)
treee6671737e4ee996400424a6094dd8e1b12f2a1a6 /Doc
parentea64d2fd4bddf4bf6cfa2d0abf5c407f6d7f1542 (diff)
downloadzsh-8773f01f2b7a908af70dc06d7d00481f1c9bec44.tar.gz
zsh-8773f01f2b7a908af70dc06d7d00481f1c9bec44.tar.xz
zsh-8773f01f2b7a908af70dc06d7d00481f1c9bec44.zip
47494, 47495: Add -n option to strftime
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/mod_datetime.yo7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/Zsh/mod_datetime.yo b/Doc/Zsh/mod_datetime.yo
index da65a9bbd..853656128 100644
--- a/Doc/Zsh/mod_datetime.yo
+++ b/Doc/Zsh/mod_datetime.yo
@@ -6,8 +6,8 @@ The tt(zsh/datetime) module makes available one builtin command:
 startitem()
 findex(strftime)
 cindex(date string, printing)
-xitem(tt(strftime) [ tt(-s) var(scalar) ] var(format) [ var(epochtime) [ var(nanoseconds) ] ] )
-item(tt(strftime) tt(-r) [ tt(-q) ] [ tt(-s) var(scalar) ] var(format) var(timestring) )(
+xitem(tt(strftime) [ tt(-s) var(scalar) | tt(-n) ] var(format) [ var(epochtime) [ var(nanoseconds) ] ] )
+item(tt(strftime) tt(-r) [ tt(-q) ] [ tt(-s) var(scalar) | tt(-n) ] var(format) var(timestring) )(
 Output the date in the var(format) specified.  With no var(epochtime), the
 current system date/time is used; optionally, var(epochtime) may be used to
 specify the number of seconds since the epoch, and var(nanoseconds) may
@@ -18,6 +18,9 @@ ifzman(the section EXPANSION OF PROMPT SEQUENCES in zmanref(zshmisc))\
 ifnzman(noderef(Prompt Expansion)) are also available.
 
 startitem()
+item(tt(-n))(
+Suppress printing a newline after the formatted string.
+)
 item(tt(-q))(
 Run quietly; suppress printing of all error messages described below.
 Errors for invalid var(epochtime) values are always printed.