[Zope] changing variables

Pavlos Christoforou pavlos@gaaros.msrc.sunysb.edu
Tue, 27 Apr 1999 15:29:26 -0400 (EDT)


On Tue, 27 Apr 1999, Wombat Harness the Third wrote:

> Perhaps someone can help me with this one....
> 
> I have a press lounge with a number of press releases in it. Each of 
> these press documents has a property called 'publishDate' which is in 
> the date format. I am trying to use ZopeTime (which displays the time 
> and date) to check this publishDate property and if the two match 
> print out the content if not, do not. Basically, i need to be able to 
> assign ZopeTime to a variable and strip off the time part. You can do 
> this if you print it to the screen with:

try (untested)

<!--# if "publishDate.isCurrentDay()" -->
   ... publish cute stuff ...
<!--# /if-->

For more info on DateTime options check:
Zope-1.10.2-src/lib/python/DateTime/DateTime.py

Pavlos