Skip to content
Tcl Source Code History Of Ticket 1399323
Login

History Of Ticket 1399323

Artifacts Associated With Ticket 1399323

  1. Ticket change [c3cacdb82f] (rid 111724) by rbrunner on 2006-01-07 18:37:39:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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 {}
      
    4. foundin initialized to: "obsolete: 8.5a4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "rbrunner"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to:
      Enhancement: [clock format now ...] and [clock add now ...]
      
    11. type initialized to: "RFE"
  2. Ticket change [f620ffc883] (rid 130236) by rbrunner on 2006-01-08 01:48:03:

    1. assignee changed to: "kennykb"
  3. Ticket change [a7b1af6291] (rid 98854) by dkf on 2006-01-09 15:52:06:

    1. subsystem changed to: "07. Variables"
  4. Ticket change [3b9ee5ca54] (rid 112775) by dkf on 2006-01-09 17:04:52:

    1. subsystem changed to: "06. Time Measurement"
  5. Ticket change [38ef442a62] (rid 112299) by kennykb on 2007-04-20 11:13:18:

    1. foundin changed to: "None"
    2. icomment:
      
      
      data_type - 360894
      
      
      
    3. login: "kennykb"
    4. mimetype: "text/plain"
    5. subsystem changed to: "06. Time Measurement"
    6. username: "kennykb"
  6. Ticket change [ab8c96fe85] (rid 261511) by serhiy.storchaka on 2026-11-13 11:18:43:

    1. closedate changed to: "2461357.9713335303"
    2. closer changed to: "serhiy.storchaka"
    3. 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.
      
    4. login: "serhiy.storchaka"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"