Overview
| Artifact ID: | 44c422e883412e76869c0c826f7547170ae69a2f |
|---|---|
| Ticket: | 3431943fffffffffffffffffffffffffffffffff
clock scan with %y is not handled correctly |
| User & Date: | jeremy_c on 2011-11-01 14:46:42 |
Changes
- assignee changed to: "kennykb"
- cmimetype changed to: "text/plain"
- comment changed to:
The documentation states that %y is a 2 digit year. However, clock scan will allow it to be a 1 digit year (which doesn't happen in the real world, and if it would, it would most likely be prefixed with a zero). An example: puts [clock format [clock scan 01221 -format %m%d%y]] # output = Mon Jan 22 00:00:00 EST 2001 I would have expected the output to be an error indication that one could then use catch on: puts [clock format [clock scan 01221 -format %m%d%y]] # input string does not match supplied format For example: puts [clock format [clock scan 1 -format %m%d%y]] # input string does not match supplied format I am using 8.6b2 but have confirmed the problem on 8.5 as well.
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "jeremy_c"
- subsystem changed to: "06. Time Measurement"
- title changed to: "clock scan with %y is not handled correctly"
- type changed to: "Bug"