[Zope] date arithmetic in DTML

Bill Anderson bill.anderson@libc.org
Tue, 13 Jul 1999 18:13:01 -0600


Michel Pelletier wrote:
> 
> > -----Original Message-----
> > From: Joachim Schmitz [mailto:perry@ac-copy.net]
> > Sent: Tuesday, July 13, 1999 8:07 AM
> > To: zope@zope.org
> > Subject: [Zope] date arithmetic in DTML
> >
> >
> >
> > how can I datearithmetic in DTML for example today - 30 days,
> > to search
> > for a date in a db, which is not older than today - 30 days.
> > Where can I
> > find documentation about it ?
> >
> 
> <!--#var "ZopeTime() - 30"--> is 30 days previous today.
> 
> The DateTime module has many, many options like this.  I would suggest
> looking at: lib/python/DateTime/DateTime.py
> 
> -Michel


Unfortunately for me, the DateTime I installed, is not the same as the
DateTime in CVS/release.
Thus my external methods don't work in Zope, even though they work from
the CL. :-(