Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-07-17
01:43 • Closed ticket [441772ffff]: 'clock format' fails under Windows 2000 ... artifact: cfec51ca98 user: hobbs
2001-07-16
18:29 • New ticket [441772ffff]. artifact: 388f04f364 user: lesliebrooks

'clock format' fails under Windows 2000

Closed / Invalid441772ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-07-16 18:29:44
     Under Windows 2000 TCL's clock advances 
approximately 3 hours every 10 seconds.  This has been 
verified with Expect 5.21 (Chaffee port), TCL 8.3.2, 
and 8.4.a2.  In this example the commands were 
executed 10 seconds apart (timed by hand):

% clock format [clock clicks] -format "%A %B %d %H:%M:%
S"
Monday July 18 10:38:50
% clock format [clock clicks] -format "%A %B %d %H:%M:%
S"
Monday July 18 13:15:33
%

     The reported times in the example should be 10 
seconds apart, but actually differ by almost 3 hours.

     The date is also wrong (today is Monday July 16) 
and the day will change if I wait a few minutes.

     However, the 'after' command works correctly -
 'after 10000' waits 10 seconds.  Go figure.

Leslie
hobbsplain2001-07-17 01:43:18
Logged In: YES 
user_id=72656

Errr, you realize that you want [clock seconds] and not 
[clock clicks]?  Otherwise, clock works just fine.
Log in (anonymous is fine) to add a comment.