[Zope] Python DateTime()
Andreas Jung
andreas at andreas-jung.com
Thu May 6 10:18:54 EDT 2004
Methods can only be called on instances not on classes.
-aj
--On Donnerstag, 6. Mai 2004 10:11 Uhr -0400 Israel Carr
<icarr at compxnet.com> wrote:
> I'm trying to use the following line to insert current date:
>
> DateTime.strftime(%m-%d-%Y)
>
> ... and get:
>
> unbound method strftime() must be called with instance as first argument
>
>
> If I just use:
>
> DateTime()
>
> ..I get current date, just not the format I want.
>
> Ideas?
>
> Thanks for your help.
> Israel
>
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
More information about the Zope
mailing list