[Zope] working with datetime

Jim Sanford jsanford@atinucleus.com
Thu, 27 Jul 2000 21:58:09 -0500


<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" <code@ou.edu>
To: <zope@zope.org>
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  -  Zope@zope.org
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 )