Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-02-13
10:54 • Closed ticket [1639435fff]: Clock scan plus 7 other changes artifact: b79e752709 user: kennykb
2007-01-19
18:01 • Ticket [1639435fff]: 4 changes artifact: 362aa4ae80 user: vampiera
18:01 • Add attachment test.tcl to ticket [1639435fff] artifact: df4e2711d0 user: vampiera
11:01 • New ticket [1639435fff] Clock scan. artifact: 48acebd941 user: vampiera

Clock scan

Closed / Invalid1639435fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2007-01-19 11:01:29
problem to scan an invalid date.
example (in test.tcl attached):
2008-14-20 becomes 2009-02-20 without any error
vampieraplain2007-01-19 18:01:29
File Added - 212037: test.tcl
kennykbplain2007-02-13 10:54:22
Logged In: YES 
user_id=99768
Originator: NO

That's not a bug; that's a feature.  We deliberately allow month and day numbers out of range because they make certain calculations easier: for instance: 2007-03-00 is the last day of February; 2007-01-00 is the last day of 2006, and so on.  As you observed, a month number of 14 is interpreted as February in the following year.  It seems strange, but turns out to be convenient.
Log in (anonymous is fine) to add a comment.

Attachments: