Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e96dc5165bc6faf79c4ca0342b42678858fd08f5
Ticket: 1118650fffffffffffffffffffffffffffffffff
Problem with function clock
User & Date: kennykb on 2005-02-08 22:31:31
Changes

  1. icomment:
    Logged In: YES 
    user_id=99768
    
    I'll have a look at this, but you 
    should be aware that there are
    so many ambiguities in free-form
    [clock scan] that the problem may
    not be fixed in the 8.4 series.
    
    A better way to get the same effect 
    would be to use the '-base' option on
    the [clock scan] command:
    
    set timeCurrent [clock format [clock seconds]]
    set i 2
    set twoDaysAfter \ 
        [clock scan "$i days" -base $timeCurrent]
    set i -2
    set twoDaysBefore \
        [clock scan "$i days" -base $timeCurrent]
    
    That should be enough to get your program
    running again.
    
    
  2. login: "kennykb"
  3. mimetype: "text/plain"
  4. username: "kennykb"