August 13, 2003
mxBase available for Python 2.3

Marc-Andre Lemburg has announced a new version of his essential Python package, mxBase. It works under Python 2.3 now.

This package includes mxDateTime - every date/time tool you'll ever need, and then some. Superb.

Marc-Andre has also released a new version of mxODBC, a Python ODBC Interface. This is also excellent, but be aware, commercial use of this is not free.

Posted to Python by Simon Brunning at August 13, 2003 11:11 AM
Comments

Interestingly, the part of the package I use the most (mxDateTime) is partially superseded by the new DateTime module in the standard library.

Has anyone done a comparison of the two?

Posted by: Andy Todd on August 13, 2003 11:22 AM

I haven't seen a comparison anywhere, but datetime (http://www.python.org/doc/current/lib/module-datetime.html) looks more limited than mxDateTime. I don't see an equivalent of RelativeDateTime objects, for example.

Posted by: Simon Brunning on August 13, 2003 11:30 AM

I believe you are looking for timedelta objects;

http://www.python.org/doc/current/lib/datetime-timedelta.html

Posted by: Andy Todd on August 13, 2003 12:29 PM

Nah, datetime.timedelta objects are like mx.DateTime.DateTimeDelta objects. mx.DateTime.RelativeDateTime objects are different. They allow you to specify things like 'the second Tuesday of next month' easily. They are kind of like date/time tab stops.

http://www.egenix.com/ seems to be down - otherwise I'd post a link.

Posted by: Simon Brunning on August 13, 2003 12:40 PM

Ok, point taken. Must RTFM. As I can't find a comparison elsewhere I guess it means that I'll have to do one myself.

Posted by: Andy Todd on August 13, 2003 12:59 PM

See http://www.brunningonline.net/simon/blog/archives/boozeup.py.html#getMonthsBoozeupDate for an example of RelativeDateTime in action. It's *incredibly* powerful, and I've not seen anything like it elsewhere. If you need it, you need it *bad*.

Posted by: Simon Brunning on August 13, 2003 01:18 PM
Post a comment
Name:


Email Address:


URL:



Comments:


Remember info?