Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
06:56 • Ticket [218357ffff] Clock Formatting Incorrect status still Closed with 3 ot... artifact: 0d6bed9d78 user: dgp
2000-10-26
08:20 • Closed ticket [218357ffff]. artifact: 1a1d9ad654 user: welch
00:56 • New ticket [218357ffff]. artifact: 1508d4d6b6 user: nobody

Clock Formatting Incorrect

Closed / Fixed218357ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:39
OriginalBugID: 4147 Bug
Version: 8.2.2
SubmitDate: '2000-02-09'
LastModified: '2000-02-10'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Windows NT
OSVersion: 4.0
Machine: Dell GX1
FixedDate: '2000-10-25'
ClosedDate: '2000-02-10'


Name:
Allen Flick

Extensions:
None

ReproducibleScript:
% clock format [clock seconds]
Wed Feb 09 11:16:31 Central Standard Time 2000
% clock format [clock seconds] -format "%H:%M:%S"
11:17:09
% clock format [clock seconds] -format "%h:%M:%S %p"
Feb:17:21 AM
% clock format [clock seconds] -format "%b:%M:%S %p"
Feb:17:46 AM
% clock format [clock seconds] -format "%B:%M:%S %p"
February:17:55 AM
%

ObservedBehavior:
The month, abbreviated, is inserted when *h* is used for formatting, like the
use of lowercase *b* is supposed to provide.

DesiredBehavior:
Using the %h, above, the expected behavior would be the formatting to
provide the following output:

% clock format [clock seconds] -format "%h:%M:%S %p"
11:17:21 AM



This is the doc'ed behavior, although the P.Raines book and
pocket ref doc it incorrectly. 
-- 02/10/2000 hobbs
welch Closed ticket [218357ffff]. [History diff]2000-10-26 08:20:08
dgp Ticket [218357ffff]: 3 changes [History diff]2001-04-05 06:56:34
Log in (anonymous is fine) to add a comment.