[pmwiki-users] date math
Patrick R. Michaud
pmichaud at pobox.com
Wed Oct 24 20:47:50 CDT 2007
On Wed, Oct 24, 2007 at 06:44:21PM -0700, TSgt Marshall Kelly wrote:
> Hello all,
>
> Hope you don't mind another question.
>
> I've gotten "(:if date yyyymmdd..:) execThisCode (:ifend:)" to work, and I
> can use the "math" function.
>
> But how can I use the current value of date in a math equation. I'd like
> to determine if it's been X days since some event.
Doing math on dates and times can be a bit tricky.
You might be able to do something like
(:if date ..-3days :)
to see if something occurred more than 3 days ago.
Pm
More information about the pmwiki-users
mailing list