[pmwiki-users] Conditional Directive based on time
Patrick R. Michaud
pmichaud at pobox.com
Wed Oct 12 08:53:38 CDT 2005
On Wed, Oct 12, 2005 at 08:42:13AM -0500, Jonathan Scott Duff wrote:
> Indeed. I think most people have an easier time with including the
> ending date than otherwise, so I think the semantics should be
>
> (:if date 20051206- :) display on and after Dec 6
> (:if date -20051210 :) display before and on Dec 10
> (:if date 20051206-20051210 :) display Dec 6,7,8,9, and 10
Keeping this theme, then ("through" means "including" here):
(:if date 200501-200503 :) display from 2005.01.01 through 2005.03.31
(:if date 20051006-2006 :) display from 2005.10.06 through 2006.12.31
(:if date 20051006-200601 :) display from 2006.10.06 through 2006.01.31
(:if date 20051006-20060101 :) display from 2006.10.06 through 2006.01.01
(:if date 20051006-2005 :) display from 2005.10.06 through 2005.12.31
> BTW, I notice that you consistently put a space at the end of your
> directives--is that purely for readability?
Yes.
Pm
More information about the pmwiki-users
mailing list