Skip to content
Tcl Source Code Artifact [820bb649b5]
Login

Artifact [820bb649b5]

Artifact 820bb649b5f6664b1ff1ac03c2849ef2a5760ea7:

Ticket change [820bb649b5] - New ticket [218412ffffffffff|218412ffff] <i>clock format -format %H output incorrect</i>. by nobody on 2000-10-26 00:57:16.
D 2000-10-26T00:57:16
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s5444\sBug\nVersion:\s8.3.1\nSubmitDate:\s'2000-05-11'\nLastModified:\s'2000-05-11'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sLinux\nMachine:\sDell\sInspiron\s7000\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-05-11'\n\n\nName:\nBruce\sEdge\n\nComments:\nThis\sis\sall\sbased\son\sthe\sassumption\sthat\sI\scan\suse\sclock\sformat\swith\n\s\s\s\srelative\stimes.\sIt\shandles\sthe\sminutes\sand\sseconds\scorrectly,\sjust\snot\n\s\s\s\sthe\shours.\n\nReproducibleScript:\nclock.tcl:\n\nset\sdate1\s"03/01/2000\s00:14:03"\nset\sdate2\s"03/01/2000\s00:15:10"\n\nset\st1\s[clock\sscan\s$date1]\nset\st2\s[clock\sscan\s$date2]\nset\stdiff\s[expr\s($t2\s-\s$t1)]\nputs\s"$t2\s-\s$t1\s=\s$tdiff"\nputs\s"[clock\sformat\s$tdiff\s-format\s%H],\s[clock\sformat\s$tdiff\s-format\s%M],\s[clock\sformat\s$tdiff\s-format\s%S]"\n\n>\stclsh\sclock.tcl\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s~/customers/mexico/cdr\n951898510\s-\s951898443\s=\s67\n16,\s01,\s07\n\nObservedBehavior:\nThe\soutput\sfor\s[clock\sformat\s$tdiff\s-format\s%H]\sshould\sbe\s00,\snot\s16.\n\nDesiredBehavior:\n>\stclsh\sclock.tcl\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s~/customers/mexico/cdr\n951898510\s-\s951898443\s=\s67\n00,\s01,\s07\n\n\n\nThe\sformat\sis\scorrect,\sas\sit's\sbased\soff\sthe\sepoch.\s\sThe\suser\nwants\sdifferent\stime\scalculations\sfor\stime\selapsed.\s\sNote\salso\nthat\sthere\sneeds\sto\sbe\sonly\sone\sclock\sformat\scommand\sabove.\s\n--\s05/11/2000\shobbs
J foundin obsolete:\s8.3.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 48.\sNumber\sHandling
J title clock\sformat\s-format\s%H\soutput\sincorrect
J type Bug
K 218412ffffffffffffffffffffffffffffffffff
U nobody
Z 2578112f8eae6f97db3f561e2a73aa53