[egenix-users] date display behavior in mxdatetime 3

Eugene Chow gene at paragonam.com
Fri Feb 29 11:51:54 CET 2008


I've noticed that date display behavior has changed in version 3 of  
mxdatetime in an undesirable way:

Python 2.4.3 (#1, Apr  7 2006, 10:54:33)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import mx.DateTime
 >>> mx.DateTime.__version__
'3.0.0'
 >>> d=mx.DateTime.Date(2008,1,-1)
 >>> d
<mx.DateTime.DateTime object for '2008-01--1 00:00:00.00' at 63e90>
 >>> d.strftime()
'Thu Jan -1 00:00:00 2008'
 >>> d==mx.DateTime.Date(2008,1,31)
True
 >>>

In version 2, the day is displayed as the actual last day of the month  
and not "-1".

Was this change intentional?

Thanks,
Gene Chow



More information about the egenix-users mailing list