[Zope] Manipulating Dates in Zope

Thomas B. Passin tpassin@mitretek.org
Tue, 4 Dec 2001 18:14:15 -0500


[<complaw@hal-pc.org>]

> 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?
>

mxDateTime has a lot of date capability.  It's python, not specifically
Zope.  Do a search on Google and you should find it.

Cheers,

Tom P