Dear Sirs,

I was playing with Jython and noticed the most bizarre behaviour

>>> from java.text import SimpleDateFormat
>>> sdf = SimpleDateFormat("yyyy-MM-dd hh:mm:ss")
>>> date = sdf.parse("0000-00-00 00:00:00")
>>> date
Sun Nov 30 00:00:00 CST 0002

Why was the date 0000-00-00 converted to 2002-11-30 ?

Is this a flaw with the JDK java.util.Date package or jython artefact ?

Stephen.

 

 



Get a bigger mailbox -- choose a size that fits your needs.

http://uk.docs.yahoo.com/mail_storage.html