Am 23.10.2006, 14:38 Uhr, schrieb Charlie Clark <[EMAIL PROTECTED]>:

Am 23.10.2006, 14:36 Uhr, schrieb Andreas Jung <[EMAIL PROTECTED]>:
  -> lib/python/Products/PythonScripts/README.txt
 Exactly the same mechanism? I'll give it a try.

I  still have the same problem:

import mx.DateTime, datetime

d1 = mx.DateTime.DateTime(2006, 10, 22)
print d1
print d1.strftime("%Y.%m.%d")

d2 = datetime.datetime(2006, 10, 22)
print d2
print d2.strftime("%Y.%m.%d")

return printed

strftime() works find with the mx.DateTime object but not with the Python datetime object. Is an additional security declaration required?

Charlie Clark

Professional Python Services directly from the Source
Python/Zope Consulting and Support ...
mxODBC.Zope.Database.Adapter ...   
mxODBC, mxDateTime, mxTextTools ...
Try mxODBC.Zope.DA for Windows, Mac OS, Linux, Solaris, FreeBSD for free!
ZPT mailing list

Reply via email to