[egenix-users] DateTimeFrom problem

robin and jim robinjim at earthlink.net
Thu May 29 17:38:13 CEST 2003


For what it is worth, the behavior is correct with Python 2.2.2 on MS
Windows:

PythonWin 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond (mhammond at skippinet.com.au) - see
'Help/About PythonWin' for further copyright information.
>>> from mx.DateTime import DateTimeFrom
>>> DateTimeFrom('2003/05/28')
<DateTime object for '2003-05-28 00:00:00.00' at 11e3ce8>
>>> DateTimeFrom('2003-05-28')
<DateTime object for '2003-05-28 00:00:00.00' at 1291680>
>>> import mx
>>> mx.__version__
'2.0'
>>>
----- Original Message -----
From: "Gene Chow" <genechow at pacbell.net>
To: <egenix-users at lists.egenix.com>
Sent: Thursday, May 29, 2003 11:57 AM
Subject: [egenix-users] DateTimeFrom problem


> I'm using egenix-mx-base-2.0.4 on Mac OS X. The following behavior is
> easy to work around, but it does not seem correct or desirable.
>
> Python 2.1.3 (#1, Aug 29 2002, 17:22:52)
> [GCC 3.1 20020420 (prerelease)] on darwin6
> Type "copyright", "credits" or "license" for more information.
>  >>> from mx.DateTime import DateTimeFrom
>  >>> DateTimeFrom('2003/05/28')
> <DateTime object for '2028-03-05 00:00:00.00' at 18e670>
>  >>> DateTimeFrom('2003-05-28')
> <DateTime object for '2003-05-28 00:00:00.00' at 13b740>
>  >>>
>
>
> _______________________________________________________________________
> eGenix.com User Mailing List                     http://www.egenix.com/
> http://lists.egenix.com/mailman/listinfo/egenix-users



More information about the egenix-users mailing list