On Tue, Nov 13, 2007 at 12:15:06PM +0000, Hans wrote:
> Tuesday, November 13, 2007, 10:45:02 AM, [EMAIL PROTECTED] wrote:
> 
> > I think that Hans was hoping that '2007W46' was a valid date string for the
> > test, but as far as I can see from reading through the documentation (and 
> > the
> > PmWiki code) it isn't. (It would be convenient if it was though). I'm afraid
> > that means that what Hans posted won't work.
> 
> I was not hoping anything. I just quoted from the PmWiki.Pagelists
> page. If that is incorrect the example on the page needs fixing.

The %YW%V format will produce dates that look like '2007W6', but
the 'date' conditional doesn't yet know how to process them.

However, one can still determine if a pagename or other date is in 
the current week:

    (:if equals {(ftime %YW%V)} {(ftime %YW%V {*$Name})} :)

The first {(ftime)} returns the current week number, the second
{(ftime)} returns the week number of the pagename given by {*$Name}.
If the two are equal, then the page is in the same week as the current one.

Pm

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to