From 5ad76492af8931added1ae9600309d915d1427a5 Mon Sep 17 00:00:00 2001 From: dana Date: Tue, 13 Nov 2018 13:01:01 -0600 Subject: 43800: Add nanosecond support to strftime built-in --- Doc/Zsh/mod_datetime.yo | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Doc') 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. -- cgit 1.4.1