Aaargh, I meant to post to the group -- Sorry, PM!<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Tegan Dowling</b> <<a href="mailto:tmdowling@gmail.com">tmdowling@gmail.com
</a>><br>Date: Oct 25, 2007 8:40 AM<br>Subject: Re: [pmwiki-users] date math<br>To: "Patrick R. Michaud" <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>><br><br></span><span class="q">On 10/24/07,
<b class="gmail_sendername">Patrick R. Michaud</b> <<a href="mailto:pmichaud@pobox.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pmichaud@pobox.com</a>> wrote:</span><div><span class="q">
<span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Oct 24, 2007 at 06:44:21PM -0700, TSgt Marshall Kelly wrote:<br>> Hello all,<br>><br>> Hope you don't mind another question.<br>><br>> I've gotten "(:if date yyyymmdd..:) execThisCode (:ifend:)" to work, and I
<br>> can use the "math" function.<br>><br>> But how can I use the current value of date in a math equation. I'd like<br>> to determine if it's been X days since some event.<br><br>Doing math on dates and times can be a bit tricky.
<br><br>You might be able to do something like<br><br> (:if date ..-3days :)<br><br>to see if something occurred more than 3 days ago.</blockquote></span><div><br>Could we maybe get some examples on the wiki of how to do this kind of thing? I'm sure I could use it, but without any examples it's just
hard to get a handle on. I did add some stuff to the
<a href="http://www.pmwiki.org/wiki/Cookbook/MarkupExpressions-Sandbox" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.pmwiki.org/wiki/Cookbook/MarkupExpressions-Sandbox</a> (I mention since MarkupExpressions are part of this picture).
<br> </div><br></div>