ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-cmf
zope-cmf
Re: [Zope-PTK] Date Question
by Toshio Matsuda other posts by this author
Sep 21 2000 10:53AM messages near this date
[Zope-PTK] Date Question | [Zope-PTK] Resource name incorrectly reproduced
Hi,

> >>>> Date: Tue, 19 Sep 2000 14:27:46 -0700
> >>>> Subject: [Zope-PTK] Date Question
> >>>> MsgId: <B5ED2861.17B9%scott@[...].net>
> >>>> scott@launchpoint.net(Scott Burton) said:
>  
>  OK, I have searched everywhere for the answer to this. It is quite simple
>  but I can't seem to figure it out. All I want to do is iterate over
>  cataloged objects(<dtml-in "Catalog(meta_type='object_type')">) and only
>  show items who's bobobase_modification_date matches today's date.
>  I just can't figure out how to set the fmt="%d" in an if tag.

The following page is good for you.

http://www.zope.org/Members/Zen/howto/AdvZCatalogSearching

I usually compare the date against today as follows:

<dtml-if "bobobase_modification_time.Date() == ZopeTime().Date()"> 

-- 
Toshio Matsuda <matsuda-toshio@[...].jp> 
Thread:
Scott Burton
Toshio Matsuda

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved