[egenix-users] DateTimeFrom problem

Gene Chow genechow at pacbell.net
Thu May 29 17:38:23 CEST 2003


Here's a couple of other setups that produce the wrong answer:

Python 2.2 (#1, 07/14/02, 23:25:09)
[GCC Apple cpp-precomp 6.14] on darwin
Type "help", "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 15b740>
 >>> import mx
 >>> mx.__version__
'2.0'
 >>>

Python 2.2.1 (#1, Apr 18 2002, 09:42:55)
[GCC 2.95.3 20010315 (release) [FreeBSD]] on freebsd4
Type "help", "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 8188340>
 >>> import mx
 >>> mx.__version__
'2.0'
 >>>

On Thursday, May 29, 2003, at 03:38  PM, robin and jim wrote:

> 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