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 AMInterestingly, 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 AMI 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 AMI believe you are looking for timedelta objects;
http://www.python.org/doc/current/lib/datetime-timedelta.html
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 PMOk, 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 PMSee 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