Jim Tcl
Check-in [ac0fb3f181]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:docs: clock: Document the -gmt flag

Signed-off-by: Steve Bennett <steveb@workware.net.au>

Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ac0fb3f1816a95232ec9febd36c59eaacd73c9a9
User & Date: steveb@workware.net.au 2019-05-20 05:38:54
Context
2019-06-10
04:58
linenoise: Update to rev d1a245f4a75747a1c4a1c08

win32 insert/delete fix to avoid assertion failure Accept linefeed as enter

Signed-off-by: Steve Bennett <steveb@workware.net.au> Leaf check-in: e29bff2d0a user: steveb@workware.net.au tags: trunk

2019-05-20
05:38
docs: clock: Document the -gmt flag

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: ac0fb3f181 user: steveb@workware.net.au tags: trunk

05:38
clock scan: Implement timegm() locally

Don't rely on system timegm(), and use a locally implemented timegm() that doesn't rely on changing TZ in the environment

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 13abc622e2 user: steveb@workware.net.au tags: trunk

Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to jim_tcl.txt.

1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880



1881
1882
1883
1884

1885
1886
1887
1888
1889
1890
1891

clock
~~~~~
+*clock seconds*+::
    Returns the current time as seconds since the epoch.

+*clock clicks*+::
    Returns the current time in `clicks'.

+*clock microseconds*+::
    Returns the current time in microseconds.

+*clock milliseconds*+::
    Returns the current time in milliseconds.

+*clock format* 'seconds' ?*-format* 'format?'+::
    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.




+*clock scan* 'str' *-format* 'format'+::
    Scan the given time string using the given format string.
    See strptime(3) for supported formats.


close
~~~~~
+*close* 'fileId'+

+'fileId' *close*+








|







|



>
>
>

|


>







1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895

clock
~~~~~
+*clock seconds*+::
    Returns the current time as seconds since the epoch.

+*clock clicks*+::
    Returns the current time in "clicks", a system-dependent, high-resolution time.

+*clock microseconds*+::
    Returns the current time in microseconds.

+*clock milliseconds*+::
    Returns the current time in milliseconds.

+*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' ?*-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
~~~~~
+*close* 'fileId'+

+'fileId' *close*+