[pmwiki-users] Conditional Directive based on time

Patrick R. Michaud pmichaud at pobox.com
Wed Oct 12 08:01:48 CDT 2005


On Wed, Oct 12, 2005 at 08:44:15AM -0400, Neil Herber wrote:
> At 2005-10-12  08:32 AM -0400, Miller, Joshua is rumored to have said:
> >Ah- you caught me.  I thought they already existed.  My suggestion 
> >would be make the on or ...(before, after) more defined, like this:
> 
> I am not sure that the extra tests (before vs on or before) are worth 
> the effort to code or remember. If I want something on or before Dec 
> 6, then I would just code it as before Dec 7.

I agree.

> Some confusion may have been caused by this line:
> >    (:if date 20051206-20051210 :)   display during Dec 6-9, 2005
> which should probably read:
>     (:if date 20051206-20051210 :)   display during Dec 6-10, 2005

Well, I'm thinking that I'd like the items below to remain somewhat
consistent:

    (:if date 20051206-20051210 :)
    (:if date -20051210 :)

So, if the first one includes December 10th (i.e., through 23:59:59), 
then the second one should also.  

I'll be very glad to code this up and add it in the distribution;
I'm just wanting some consensus on the syntax and interpretation.

Pm





More information about the pmwiki-users mailing list