[Zope-dev] Equating dates

Jason Spisak webmaster@mtear.com
Tue, 11 May 1999 10:43:53 -0400


Pavlos:

Thanks.  You beat me to the punch.  Thanks so much.  

Jason Spisak
webmaster@mtear.com

Pavlos Christoforou wrote:
> 
> > Zopists:
> >
> >
> > <!--#if "date==appointment_date"-->
> > <!--#var foo-->
> > <!--#/if-->
> >
> 
> If date refers to 'now' you can do
> 
> <!--#if "appointment_date.isCurrentHour()"-->
> <!--# var spam-->
> <!--# /if-->
> 
> If you want to compare two arbitrary datetime objects to the day
> then:
> 
> <!--#if "appointment_date.dayOfYear()==date.dayOfYear()"-->
> <!--# var spam-->
> <!--# /if-->
> 
> both untested
> 
> Pavlos

-- 
Jason Spisak
webmaster@mtear.com