[ZPT] DateTime module and class instances ?

Evan Simpson evan@digicool.com
Mon, 4 Jun 2001 12:35:25 -0400


From: "Geir B=E6kholt" <geirh@funcom.com>
> pardon my ignorance , but i cannot figure out how to do the equivalent
> of : <dtml-var expr=3D"_.DateTime.day(somedate)"> in ZPT

<span tal:replace=3D"python:DateTime(somedate).day()">Day</span>

...or, if sometime is already a DateTime instance:

<span tal:replace=3D"somedate/day">Day</span>

Cheers,

Evan @ digicool