"The strange DateTime"
Hi, I have a real nice one here.
import DateTime a=DateTime.DateTime("23/23/23") a DateTime('2003/01/29')
Today is 29-01-2003. Can you help me, maybe I'm wrong?! Thanks in advance, Rares _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
DateTime tries to be smart but it is not always all the time. On the other hand 23/23/23 is not a valid date. -aj --On Mittwoch, 29. Januar 2003 12:45 +0200 Rares Vernica <verni0@hotmail.com> wrote:
Hi,
I have a real nice one here.
import DateTime a=DateTime.DateTime("23/23/23") a DateTime('2003/01/29')
Today is 29-01-2003. Can you help me, maybe I'm wrong?!
Thanks in advance, Rares
_________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
From: "Rares Vernica" <verni0@hotmail.com>
I have a real nice one here.
import DateTime a=DateTime.DateTime("23/23/23") a DateTime('2003/01/29')
Yeah, thats nice. :-) You should of course get an error message, but I'm not sure how easy that is to fix.
participants (3)
-
Andreas Jung -
Lennart Regebro -
Rares Vernica