Overview
| Artifact ID: | f9c81fbcdcb93fe294266917305ff2ccfc4db9ee |
|---|---|
| Ticket: | 745830ffffffffffffffffffffffffffffffffff
clock formating problem |
| User & Date: | tomk on 2003-05-29 23:50:45 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "tomk"
- subsystem changed to: "16. Commands A-H"
- title changed to: "clock formating problem"
- type changed to: "Bug"