diff options
author | Steve Bennett <steveb@workware.net.au> | 2019-05-20 15:35:26 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2019-05-20 15:38:54 +1000 |
commit | 7155afa31fdc385eab0d69e8d55ccd54ba4d2805 (patch) | |
tree | 3ad0fd002fe911b86310e88fa2060ca730ce00e0 | |
parent | 4b2b03044344f9a1b637e7258db8dfd079753f10 (diff) | |
download | jimtcl-7155afa31fdc385eab0d69e8d55ccd54ba4d2805.zip jimtcl-7155afa31fdc385eab0d69e8d55ccd54ba4d2805.tar.gz jimtcl-7155afa31fdc385eab0d69e8d55ccd54ba4d2805.tar.bz2 |
docs: clock: Document the -gmt flag
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | jim_tcl.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt index 64642a9..9240afa 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -1866,7 +1866,7 @@ clock Returns the current time as seconds since the epoch. +*clock clicks*+:: - Returns the current time in `clicks'. + Returns the current time in "clicks", a system-dependent, high-resolution time. +*clock microseconds*+:: Returns the current time in microseconds. @@ -1874,14 +1874,18 @@ clock +*clock milliseconds*+:: Returns the current time in milliseconds. -+*clock format* 'seconds' ?*-format* 'format?'+:: ++*clock format* 'seconds' ?*-format* 'format?' ?*-gmt* 'boolean?'+:: Format the given time (seconds since the epoch) according to the given format. See strftime(3) for supported formats. If no format is supplied, "%c" is used. + :: + If +'boolean'+ is true, processing is performed in UTC. + If +'boolean'+ is false (the default), processing is performeed in the local time zone. -+*clock scan* 'str' *-format* 'format'+:: ++*clock scan* 'str' *-format* 'format' ?*-gmt* 'boolean?'+:: Scan the given time string using the given format string. See strptime(3) for supported formats. + See `clock format` for the handling of '-gmt'. close ~~~~~ |