Artifacts Associated With Ticket 1120012
Ticket change [3f37db05ea] (rid 121416) by coldstore on 2005-02-10 13:10:55:
- assignee initialized to: "kennykb"
- cmimetype initialized to: "text/plain"
- comment initialized to:
clock scan accepts fairly wild dates, such as the 99th of February 2005, but rejects the 100th of February ... I haven't tried this on a leap year :) I would expect it to error on such dates. % clock scan 2005/02/99 -format %Y/%m/%d 1115647200 % clock scan 2005/02/100 -format %Y/%m/%d input string does not match supplied format % puts $tcl_version 8.5 % puts $tcl_patchLevel 8.5a2
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "coldstore"
- subsystem initialized to: "06. Time Measurement"
- title initialized to: "clock scan accepts bogus dates"
- type initialized to: "Bug"
Ticket change [d7b4d388bd] (rid 107311) by coldstore on 2005-02-10 21:12:35:
- icomment:
Logged In: YES user_id=19214 I only discovered this behavior because I was relying on [clock scan]'s error to construct a calendar. I was iterating over day and scanning $day/$month/$year until it errored saved me having to remember how many days in each month, correcting for leap years and centuries.
- login: "coldstore"
- mimetype: "text/plain"
- username: "coldstore"
- icomment:
Ticket change [03995a44ec] (rid 119854) by kennykb on 2005-02-10 22:13:57:
- status changed to: "Closed"
Ticket change [15515a4dc9] (rid 124547) by kennykb on 2005-02-10 22:13:58:
- icomment:
Logged In: YES user_id=99768 This behavior is by design; [clock scan] will accept any number that matches the format group, even if it is outside the range. This is actually useful on occasion. In fact, one of the ways to determine the number of days in a month is to give [clock scan] day zero of the following month (which might be month thirteen). The attached file gives the idea.
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- username: "kennykb"
- icomment:
Ticket change [47bf78186e] (rid 99757) by kennykb on 2005-02-10 22:13:59:
- closedate changed to: "2005-02-10T15:13:59"
- closer changed to: "kennykb"
Ticket change [becde2ae51] (rid 102142) by kennykb on 2005-02-10 22:14:02:
- icomment:
File Added - 119462: daysinmonth.tcl
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Ticket change [165702d966] (rid 124705) by kennykb on 2005-02-10 22:33:24:
- icomment:
File Added - 119467: daysinmonth.tcl Logged In: YES user_id=99768 A more obvious method to find the last day of the month in 8.5, by the way, is to use [clock add], giving it 1 month -1 day. I've updated the attachment to show both methods.
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment:
Add attachment "daysinmonth.tcl" [6e1c23f82e] (rid 128816) by kennykb on 2005-02-10 22:33:24.
Ticket change [c2bac2439e] (rid 111530) by kennykb on 2005-02-10 22:33:25:
- icomment:
File Deleted - 119462:
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment: