Tcl Source Code

View Ticket
Login
Ticket UUID: 600832
Title: [clock scan] 'this' modifier
Type: Bug Version: obsolete: 8.4b1
Submitter: glennjnn Created on: 2002-08-27 14:55:28
Subsystem: 06. Time Measurement Assigned To: kennykb
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-08-19 20:56:27
Resolution: Wont Fix Closed By: kennykb
    Closed on: 2004-08-19 13:56:27
Description:
This might just be fixable by removing the "this" 
modifier from the [clock] man page, but I can't see a 
category for documentation.

% clock scan 
"monday last week"
1030334400
% clock scan 
"monday next week"
1031544000
% clock scan 
"monday this week"
unable to convert date-time 
string "monday this week"

observed in Tcls 8.0.3 
(solaris 7), 8.3.3 (solaris 8), 8.4b1 
(win2k)

Simplest solution:  remove the "this" 
modifier from the man page.
User Comments: kennykb added on 2004-08-19 20:56:27:
Logged In: YES 
user_id=99768

The real solution is to deprecate that version of
[clock scan] entirely; instead, use a [clock add]
function to do date and time arithmetic.

Which has been done in 8.5.