about summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2014-07-30 12:10:15 +0100
committerPeter Stephenson <pws@zsh.org>2014-07-30 12:10:15 +0100
commitd3d091029367d7bf3c413330a2e93d720614d211 (patch)
treebcbf3a576dea7de1259114fc5e8df6270350fe16 /Doc/Zsh
parent0442410c681b6b4e9ca0d25b22ed78e7989d5e29 (diff)
downloadzsh-d3d091029367d7bf3c413330a2e93d720614d211.tar.gz
zsh-d3d091029367d7bf3c413330a2e93d720614d211.tar.xz
zsh-d3d091029367d7bf3c413330a2e93d720614d211.zip
32918: add %. to ztrftime for use in prompts
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/prompt.yo7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/Zsh/prompt.yo b/Doc/Zsh/prompt.yo
index eab15d29d..36f351b96 100644
--- a/Doc/Zsh/prompt.yo
+++ b/Doc/Zsh/prompt.yo
@@ -185,6 +185,13 @@ sitem(tt(%K))(the hour of the day on the 24-hour clock)
 sitem(tt(%L))(the hour of the day on the 12-hour clock)
 endsitem()
 
+In addition, if the system supports the POSIX tt(gettimeofday) system
+call, tt(%.) provides decimal fractions of a second since the epoch with
+leading zeroes.  By default three decimal places are provided, but a
+number of digits up to 6 may be given following the tt(%); hence tt(%6.)
+outputs microseconds.  A typical example of this is the format
+`tt(%D{%H:%M:%S.%.})'.
+
 The GNU extension that a `tt(-)' between the tt(%) and the
 format character causes a leading zero or space to be stripped
 is handled directly by the shell for the format characters tt(d), tt(f),