about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-08-11 18:45:04 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-08-11 18:45:04 +0000
commit8cbd5100022d651054b9edbbb79b38c8a442ec51 (patch)
tree2cf65493d42cdd3a5d075d493a82675bfaf22e05 /Doc
parent7e27b4eee387f9a374349588d464918a500c202d (diff)
downloadzsh-8cbd5100022d651054b9edbbb79b38c8a442ec51.tar.gz
zsh-8cbd5100022d651054b9edbbb79b38c8a442ec51.tar.xz
zsh-8cbd5100022d651054b9edbbb79b38c8a442ec51.zip
29674: add $epochtime to datetime
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/mod_datetime.yo17
1 files changed, 16 insertions, 1 deletions
diff --git a/Doc/Zsh/mod_datetime.yo b/Doc/Zsh/mod_datetime.yo
index 514c43037..619067698 100644
--- a/Doc/Zsh/mod_datetime.yo
+++ b/Doc/Zsh/mod_datetime.yo
@@ -30,7 +30,8 @@ in seconds if tt(-r) is given) to var(scalar) instead of printing it.
 )
 enditem()
 
-The tt(zsh/datetime) module makes available several parameters:
+The tt(zsh/datetime) module makes available several parameters;
+all are readonly:
 
 startitem()
 vindex(EPOCHREALTIME)
@@ -46,4 +47,18 @@ item(tt(EPOCHSECONDS))(
 An integer value representing the number of seconds since the
 epoch.
 )
+vindex(epochtime)
+item(tt(epochtime))(
+An array value containing the number of seconds since the epoch
+in the first element and the remainder of the time since the epoch
+in nanoseconds in the second element.  To ensure the two elements
+are consistent the array should be copied or otherwise referenced
+as a single substitution before the values are used.  The following
+idiom may be used:
+
+example(for secs nsecs in $epochtime; do
+  ...
+done)
+
+)
 enditem()