mxDateTime: does strptime not exist?
Ruediger Maehl
ruediger.maehl at dzsh.de
Thu May 3 03:55:19 EDT 2001
Hi,
I am trying to convert a string expression into a
DateTime object and found the strptime constructor
in the docs of mxDateTime. But it throws the
following error (and does not show strptime as
available method in PythonWin's Interactive
Window).
>>> import DateTime
>>> a = "09:49"
>>> f = "%H:%M"
>>> dt = DateTime.strptime(a, f)
Traceback (innermost last):
File "<interactive input>", line 1, in ?
AttributeError: strptime
Any hints?
Rüdiger
More information about the Python-list
mailing list