Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-02-27
09:13 • Closed ticket [1803823fff]: clock overflow/wraparound plus 3 other changes artifact: 158e06f1f2 user: kennykb
09:13 • Ticket [1803823fff]: 4 changes artifact: 5040b6e356 user: kennykb
2007-11-28
01:03 • Ticket [1803823fff]: 4 changes artifact: 8a0f767828 user: dgp
2007-09-27
20:06 • New ticket [1803823fff]. artifact: 425c9b3c7e user: dgp

clock overflow/wraparound

Closed / Fixed1803823fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-09-27 20:06:36
Since Tcl 8.5 has unlimited range
integers, I'm mildly surprised by:

% clock format 0x10000000000000000
expected integer but got "0x10000000000000000"
% clock format 0xffffffffffffffff
Wed Dec 31 18:59:59 EST 1969

clock.n is long, and I can't claim
to have read every word, but a quick
scan didn't appear to document a 
limited range on valid time values.
dgpplain2007-11-28 01:03:54
Logged In: YES 
user_id=80530
Originator: YES

status?
kennykbplain2008-02-27 09:13:30
Logged In: YES 
user_id=99768
Originator: NO

[clock] is limited by design to 64-bit integers (there's a good bit of C code in there, predating the inclusion of libtommath).  Checks have now been added to make sure that the arguments fit. (2**64 seconds should be enough for anybody; I doubt that the calendar will last that long, anyway.)
kennykb Closed ticket [1803823fff]. [History diff]2008-02-27 09:13:55
Log in (anonymous is fine) to add a comment.