[pmwiki-users] Page text variable arithmetic

Steve Glover steve at fell-services.net
Wed Aug 29 05:59:05 CDT 2007


Hi,

Is there a way, please, of carrying out either arithmetic or comparisons
when creating a PTV?

I have {(ftime fmt="%Y%m%d" when="{$Title}")} which gets the date string
from my page name as yyyymmdd and {(ftime fmt="%Y%m%d" when="{$Today}")}
which gets today's date in the same format, and I'd like to be able to
create a variable that will indicate if page dates are past, present or
future.

Thanks

Steve

-- 
Steve Glover at                          email: steve at fell-services.net
SDSS, EDINA, University of Edinburgh,          tel: +44 (0)131-650 2908
Causewayside House, 160 Causewayside,          fax: +44 (0)131-650 3308
Edinburgh EH9 1PR                          mobile: +44 (0) 7961 446 902




More information about the pmwiki-users mailing list