Using mxDateTime

Steve Holden sholden at holdenweb.com
Thu Jun 6 10:22:06 EDT 2002


"LJD" <ljd at nospam.com> wrote ...
> Hi:
>
> I'm new to python and I have a need to use time/date functions.
>
> I am running redhat 7.3 with the default python 1.52.  I just downloaded
the
> appropriate mxDateTime RPM and installed it.
>
> How do I now make those mxDateTime functions available to me in my python
> program?  Since this is an extension module rather than a built in
library,
> I assume I can't simply...
>
> import mxDateTime
>

Almost. You actually need to

    import mx.DateTime

because the mx extensions are nowadays structured as components of the mx
package.

regards
-----------------------------------------------------------------------
Steve Holden                                 http://www.holdenweb.com/
Python Web Programming                http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------








More information about the Python-list mailing list