i am surprised that Tcl 9 clock command doesn't support 64 bit integer.
is there a way to support it? or i am doing something wrong below?
(bin) 3 % expr 2 **31
2147483648
(bin) 4 % clock format 2147483648 -gmt 1
Tue Jan 19 03:14:08 GMT 2038
(bin) 5 % expr 2 ** 63
9223372036854775808
(bin) 6 % clock format 9223372036854775808 -gmt 1
integer value too large to represent
(bin) 7 %
i am surprised that Tcl 9 clock command doesn't support 64 bit integer.
is there a way to support it? or i am doing something wrong below?
(bin) 1 % info patch
9.0.3
(bin) 2 % parray tcl_platform
tcl_platform(byteOrder)-a-a-a-a = littleEndian tcl_platform(engine)-a-a-a-a-a-a-a = Tcl
tcl_platform(machine)-a-a-a-a-a-a = amd64 tcl_platform(os)-a-a-a-a-a-a-a-a-a-a-a = Windows NT tcl_platform(osVersion)-a-a-a-a = 10.0
tcl_platform(pathSeparator) = ;
tcl_platform(platform)-a-a-a-a-a = windows
tcl_platform(pointerSize)-a-a = 8
tcl_platform(user)-a-a-a-a-a-a-a-a-a = x
tcl_platform(wordSize)-a-a-a-a-a = 4
(bin) 3 % expr 2 **31
2147483648
(bin) 4 % clock format 2147483648 -gmt 1
Tue Jan 19 03:14:08 GMT 2038
(bin) 5 % expr 2 ** 63
9223372036854775808
(bin) 6 % clock format 9223372036854775808 -gmt 1
integer value too large to represent
(bin) 7 %
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 59 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 03:46:14 |
| Calls: | 812 |
| Files: | 1,287 |
| D/L today: |
1 files (3,740K bytes) |
| Messages: | 210,189 |