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) = littleEndian tcl_platform(engine) = Tcl
tcl_platform(machine) = amd64 tcl_platform(os) = Windows NT tcl_platform(osVersion) = 10.0
tcl_platform(pathSeparator) = ;
tcl_platform(platform) = windows
tcl_platform(pointerSize) = 8
tcl_platform(user) = x
tcl_platform(wordSize) = 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: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,096 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 364:28:45 |
| Calls: | 14,034 |
| Calls today: | 2 |
| Files: | 187,081 |
| D/L today: |
1,582 files (486M bytes) |
| Messages: | 2,478,467 |