Artifacts Associated With Ticket 692992ffffffffffffffffffffffffffffffffff
Ticket change [43161337c4] (rid 116485) by lewca43 on 2003-02-25 16:13:11:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
clock scan can not convert time in hhmm format where hh = 00 and mm > 23. The root of the problem seems to be that it strips leading 0's and 0023 becomes 2300. If this is the intended behavior, then the documentation should be updated. http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm indicates the following for the "time" values in the "dateString" argument of the clock scan command: time A time of day, which is of the form: hh?:mm?:ss?? ?meridian? ?zone? or hhmm ?meridian? ?zone?. If no meridian is specified, hh is interpreted on a 24-hour clock. however it can correctly convert hh:mm with same values. % parray tcl_platform tcl_platform(byteOrder) = bigEndian tcl_platform(machine) = sun4u tcl_platform(os) = SunOS tcl_platform(osVersion) = 5.8 tcl_platform(platform) = unix tcl_platform(user) = bschofie tcl_platform(wordSize) = 4 % puts $tcl_patchLevel 8.4.1 % clock scan 00:24 1046150640 % clock scan 0024 unable to convert date-time string "0024" % clock scan 0023 1046232000 <----------------- wrong value % clock scan 00:23 1046150580 % clock scan 23 1046232000 Thanks - Bryan Schofield
- foundin initialized to: "obsolete: 8.4.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "lewca43"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "clock scan eats leading 0's with hhmm time format"
- type initialized to: "Bug"
Ticket change [f8ad5e4fe2] (rid 91580) by dkf on 2003-02-25 23:21:14:
- subsystem changed to: "06. Time Measurement"
Ticket change [64c4abaac2] (rid 92828) by dkf on 2003-02-25 23:21:15:
- assignee changed to: "kennykb"
Ticket change [e48460fc4a] (rid 87965) by kennykb on 2004-08-19 20:55:00:
- closedate changed to: "2004-08-19T13:55:00"
- closer changed to: "kennykb"
- icomment:
Logged In: YES user_id=99768 The current [clock scan] without a -format will be deprecated in 8.5 in favor of a [clock scan] that accepts a -format group specifying the expected input format. This change is needed to deal with the ambiguities in the specification of dates and times. In 8.5, [clock scan 0024 -format %H%M] has been verified to work.
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Closed"
- username: "kennykb"