From d3d091029367d7bf3c413330a2e93d720614d211 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 30 Jul 2014 12:10:15 +0100 Subject: 32918: add %. to ztrftime for use in prompts --- Doc/Zsh/prompt.yo | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Doc') 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), -- cgit 1.4.1