Artifacts Associated With Ticket 1399323
Ticket change [c3cacdb82f] (rid 111724) by rbrunner on 2006-01-07 18:37:39:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The following enhancement would be nice. (See c.l.t for reasonging) > cvs diff -u clock.tcl Index: clock.tcl =================================================================== RCS file: /cvsroot/tcl/tcl/library/clock.tcl,v retrieving revision 1.29 diff -u -r1.29 clock.tcl --- clock.tcl 27 Dec 2005 17:39:02 -0000 1.29 +++ clock.tcl 7 Jan 2006 14:43:25 -0000 @@ -708,8 +708,12 @@ "cannot use -gmt and -timezone in same call" } if { ![string is wide -strict $clockval] } { - return -code error \ - "expected integer but got \"$clockval\"" + if { [string eq now $clockval] } { + set clockval [clock seconds] + } else { + return -code error \ + "expected integer but got \"$clockval\"" + } } if { ![string is boolean -strict $gmt] } { return -code error \ @@ -4301,7 +4305,11 @@ ?-gmt boolean? ?-locale LOCALE? ?-timezone ZONE?\"" } if { [catch { expr wide($clockval) } result] } { - return -code error $result + if { [string eq now $clockval] } { + set clockval [clock seconds] + } else { + return -code error $result + } } set offsets {} - foundin initialized to: "obsolete: 8.5a4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "rbrunner"
- subsystem initialized to: "16. Commands A-H"
- title initialized to:
Enhancement: [clock format now ...] and [clock add now ...]
- type initialized to: "RFE"
Ticket change [f620ffc883] (rid 130236) by rbrunner on 2006-01-08 01:48:03:
- assignee changed to: "kennykb"
Ticket change [a7b1af6291] (rid 98854) by dkf on 2006-01-09 15:52:06:
- subsystem changed to: "07. Variables"
Ticket change [3b9ee5ca54] (rid 112775) by dkf on 2006-01-09 17:04:52:
- subsystem changed to: "06. Time Measurement"
Ticket change [38ef442a62] (rid 112299) by kennykb on 2007-04-20 11:13:18:
- foundin changed to: "None"
- icomment:
data_type - 360894
- login: "kennykb"
- mimetype: "text/plain"
- subsystem changed to: "06. Time Measurement"
- username: "kennykb"
Ticket change [ab8c96fe85] (rid 261511) by serhiy.storchaka on 2026-11-13 11:18:43:
- closedate changed to: "2461357.9713335303"
- closer changed to: "serhiy.storchaka"
- icomment:
Implemented in Tcl 9.0 (TIP 688): clock format, clock add and clock scan -base accept now as the clock value, e.g. clock format now and clock add now 1 day.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"