Larry Albert writes:
> ....
> I am using Zope 2.2.1. Every time the method updates, I update the date
> property called last_updated ....
> .... checking last update at least 1 day ago ....
"ZopeTime()" returns a "DateTime.DateTime" object.
Such objects can be substracted giving the difference
in days.
This means, you can use:
<dtml-call "manage_changeProperties(last_updated=ZopeTime()">
to set "last_updated" and
<dtml-if "ZopeTime() - last_updated >= 1">
to check that the last update is at least 1 day ago.
Dieter
_______________________________________________
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 )