<dtml-var
"_.DateTime(_.str(ZopeTime().month()+1)+'/'+_.str(ZopeTime()
.day())+'/'+_.str(ZopeTime().year()))">
will give you a datetime object one month in the future
----- Original Message -----
From: "Leichtman, David J" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 27, 2000 5:19 PM
Subject: [Zope] working with datetime
Is there an easy way to increment the month or year of the
DateTime object?
Adding a numeric value increments the day. Incrementing the
year is easily
doable, but incrementing the month is significantly more
difficult. So I'm
just curious if there's a function that will actualy modify
the parts of a
DateTime object, or something way that I'm not thinking of
to easily
increment the month.
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )