Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f9c81fbcdcb93fe294266917305ff2ccfc4db9ee
Ticket: 745830ffffffffffffffffffffffffffffffffff
clock formating problem
User & Date: tomk on 2003-05-29 23:50:45
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    On HP-UX the '%k' produces the following result.
    % clock format [clock seconds] -format "%k %l %s"
    k l s
    % 
    
    On Solaris I get the following.
    % clock format [clock seconds] -format "%k %l %s"
    16  4 %s
    %
    
    The problem appears to be that some of the time formats
    are not part of the ANSI C standard for the strftime
    command and therefore are not support on all platforms.
    
    Note the following comment found on the OpenBSD's man
    page:  The `%G', `%g', `%k', `%l', `%s', and `%+'
    conversion specifications are extensions.
    
    Some comments form George Staplin.
    
    Try: "make distclean && export CFLAGS=-DUSE_COMPAT &&
    ./configure && make" and test the generated tclsh with
    %k. The configure command should probably check if %k
    and the other extensions work and enable USE_COMPAT if
    they don't.  I would call it a bug if it isn't in the
    clock.n man page. The clock.n for 8.4.2 doesn't mention
    anything about the extensions, so I would label this a
    bug.
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "tomk"
  9. subsystem changed to: "16. Commands A-H"
  10. title changed to: "clock formating problem"
  11. type changed to: "Bug"