diff options
-rw-r--r-- | jim_tcl.txt | 3 | ||||
-rw-r--r-- | tests/clock.test | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt index 39c7984..b645549 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -1901,6 +1901,9 @@ clock See strptime(3) for supported formats. See `clock format` for the handling of '-gmt'. +*NOTE* Some systems such as 32-bit Linux have only a 32-bit time_t, and are therefore not year 2038 +compliant. + close ~~~~~ +*close* 'fileId'+ diff --git a/tests/clock.test b/tests/clock.test index 4e32df4..3e9aec3 100644 --- a/tests/clock.test +++ b/tests/clock.test @@ -51,4 +51,9 @@ test clock-4.1 {clock scan tests} clockscan { clock scan {Sun Nov 04 03:02:46 AM 1990} -format {%a %b %d %I:%M:%S %p %Y} -gmt true } 657687766 +# This will fail on systems that are not Y2038 compliant +test clock-5.1 {Year 2038 compliance} { + clock format 2200000000 -format %Y-%m-%dT%H:%M:%S -gmt true +} 2039-09-18T23:06:40 + testreport |