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:
- test.tcl [download] added by vampiera on 2007-01-19 18:01:29. [details]