[pmwiki-users] How to: calculate how many days left

Peter & Melodye Bowers pbowers at pobox.com
Tue Feb 26 14:26:14 CST 2008


This solves the leap year issue as well as putting it into a single MX.  The
funny quotes are necessary to "hide" PHP parens from MarkupExpression
processing.

{(set i = "floor((" (ftime %s "03/03/2008") - (ftime %s) ") / 3600 / 24 )")}

-Peter




More information about the pmwiki-users mailing list