[clock add] to assume current time
Closed / Fixed1277715fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 days ago
Descriptionplain2005-08-31 20:05:29
Currently (8.5) when one wants to format a specific time other than "now" one has to write clock format [clock add [clock seconds]] Clock clock clock doesn't look very attractive. Because tcl::clock::add already does a check on [llength args] % 2 it wouldn't be such a great hassle. If uneven number of parameters is given, just set args [lassign $args clockVal] instead of erroring out, otherwise set clockVal to [clock seconds]. Would spare poor programmers brain to avoid clock clock clock, wouldn't it.
dkf Ticket [1277715fff]: 2 changes
[History diff]2005-09-01 14:58:01
serhiy.storchakawiki2026-11-13 11:18:43
Implemented differently in Tcl 9.0 (TIP 688): clock add and clock format accept now in place of the clock value, e.g. clock format now or clock add now 1 day. See also [1399323fff].
Log in (anonymous is fine) to add a comment.