Skip to content
Tcl Source Code View Ticket
Login

View Ticket

format command incompatible with 64 bit ints

Closed / Invalid729021ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-04-28 16:42:51
As of 4/28/03
The format statement is no compatible with the new 64 bit int returned by clock clicks
e.g.
% format "%d" [clock clicks -milliseconds]
integer value too large to represent

% clock clicks -milliseconds
1051547892380
dkfplain2003-04-29 15:20:03
Logged In: YES 
user_id=79902

The behaviour of [format %d] is that passes in the value as
an int (or is it a long?  One or the other.)

To handle 64-bit values, use [format %ld] instead.
Log in (anonymous is fine) to add a comment.