[Zope] Manipulating Dates in Zope
Andreas Jung
andreas@andreas-jung.com
Tue, 4 Dec 2001 17:50:44 -0500
All dates inside Zope are represented by instances of the DateTime
class (lib/python/DateTime.py). This class and its API is documented
in the online help and in the Zope Book (www.zope.org/Members/Michel/ZB).
Andreas
----- Original Message -----
From: <complaw@hal-pc.org>
To: <zope@zope.org>
Sent: Tuesday, December 04, 2001 16:50
Subject: [Zope] Manipulating Dates in Zope
> Is there a way in Zope (preferably in a python script rather than DTML) to
> manipulate dates so that you can calculate the date, say, six months ahead
> (regardless of the intermediate months having 28/29/30/31 days)?
>
> Some dates must be calculated on increments other than days. For example,
a
> response to something may be due three months from the present date (e.g.,
> February 4, 2002) or five years from the present date (e.g., December 4,
2006).
> Simply adding days would not take into account months that have more/less
than
> 30 days.
>
> Does Zope/python have any tools that can be employed for the above in a
python
> script?
>
> Thanks in advance,
>
> Ron
>
>
> _______________________________________________
> 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 )
>