Ed Leafe wrote: > On Mar 6, 2006, at 9:54 AM, Ruben and Yvonne Baumann wrote: > >> KInterbasDB uses mx.DateTime by default due to backward >> compatibility constraints, but mx.DateTime is definitely not required. >> The standard library datetime module can be used just as easily. You >> can read this section for a detailed explanation, or simply replace >> the line import kinterbasdb >> with import kinterbasdb; kinterbasdb.init(type_conv=200) >> in your client program (if you're using a version of Python prior to >> 2.4, you'll need to install the decimal module manually). Here is an >> example program that uses datetime instead of mx.DateTime. > > OK, I got the fix for this implemented. However, I'm now having a > problem with the Cursor class - I'm getting errors about it not being > the "right type". > > Give me some time to work this out, and I'll have a fix posted soon. > > -- Ed Leafe > -- http://leafe.com > -- http://dabodev.com > >
What are the other databases using for datetime? I never bothered to use something other than mx for firebird. And it's still the default for kinterbasdb. And don't forget that datetime is new to python 2.4. There are still a big number of python 2.3 installations out there. Uwe _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
