[clock scan] behaves inconsistently in Tcl8.5 (was: Re: [clock scan day] behaves differentyl in Tcl8.5 than in Tcl8.4)



Don Porter wrote:

http://tip.tcl.tk/173


That helped partly. I still think the new handling is not consistent though:

% clock format [clock scan "tomorrow"]
Tue Aug 30 00:00:00 +0200 2005
% clock format [clock scan "today"]
Mon Aug 29 19:51:15 +0200 2005
% clock format [clock scan "yesterday"]
Sun Aug 28 00:00:00 +0200 2005
-> "today" is not consistent with "yesterday" and "tomorrow"

% clock format [clock scan "now - 1 days"]
Sun Aug 28 00:00:00 +0200 2005
% clock format [clock scan "now + 0 days"]
Mon Aug 29 19:52:33 +0200 2005
% clock format [clock scan "now + 1 days"]
Tue Aug 30 00:00:00 +0200 2005
-> "now + 0 days" is not consistent with "now +/- 1 days"

Is there any reason for this?

Thanks
Ronnie
----------------------------------------------------------------------
Ronnie Brunner                             ronnie.brunner@xxxxxxxxxxxx
Netcetera AG, 8040 Zuerich   phone +41 1 247 79 79 fax +41 1 247 70 75
.