about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authordana <dana@dana.is>2018-11-13 13:01:01 -0600
committerdana <dana@dana.is>2018-11-13 13:01:01 -0600
commit5ad76492af8931added1ae9600309d915d1427a5 (patch)
tree61450721cfc810d4154c1875c3519bc5927f8dbb /Doc
parent0b3b52778bd7a4a2c97637c3d4739a7e66a695b1 (diff)
downloadzsh-5ad76492af8931added1ae9600309d915d1427a5.tar.gz
zsh-5ad76492af8931added1ae9600309d915d1427a5.tar.xz
zsh-5ad76492af8931added1ae9600309d915d1427a5.zip
43800: Add nanosecond support to strftime built-in
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/mod_datetime.yo8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/Zsh/mod_datetime.yo b/Doc/Zsh/mod_datetime.yo
index 27bc78157..da65a9bbd 100644
--- a/Doc/Zsh/mod_datetime.yo
+++ b/Doc/Zsh/mod_datetime.yo
@@ -6,9 +6,13 @@ 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) )
+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) )(
-Output the date denoted by var(epochtime) in the var(format) specified.
+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
+additionally be used to specify the number of nanoseconds past the second
+(otherwise that number is assumed to be 0).
 See manref(strftime)(3) for details.  The zsh extensions described in
 ifzman(the section EXPANSION OF PROMPT SEQUENCES in zmanref(zshmisc))\
 ifnzman(noderef(Prompt Expansion)) are also available.