[Zope] DateTime bug?

Peter Bengtsson mail@peterbe.com
Tue, 30 Jul 2002 11:58:11 +0100


--=======42302232=======
Content-Type: text/plain; x-avg-checked=avg-ok-50222C73; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit

 >>> from DateTime import DateTime
 >>> DateTime("2002-7-22")
DateTime('2002/01/01')
 >>> DateTime("2002-07-22")
DateTime('2002/07/22')
 >>>


Strange!
Just because I don't have a leading zero on the month number it defaults to 
1st of January.
Is this a bug?

Or rather...
What is so wrong with the "-" delimiter? Using "/" works fine:
 >>> DateTime("2002/7/22")
DateTime('2002/07/22')



Peter

--=======42302232=======
Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-50222C73
Content-Disposition: inline


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 2002-07-24

--=======42302232=======--