[pmwiki-users] Adding/subtracting days to ftime Page Text Variable

Simon nzskiwi at gmail.com
Wed Sep 3 21:34:01 CDT 2014


You will find the documentation here
http://www.pmwiki.org/wiki/PmWiki/MarkupExpressions#ftime

provides the information you need.
In particular see the information. and importantly the link, about the
"when" parameter.

Your contributions and updates the the PmWiki documentation would be much
appreciated if you feel it could be improved

regards

Simon




On 4 September 2014 03:49, kirpi at kirpi.it <kirpi at kirpi.it> wrote:

> > The first page uses an earlier recipe from 2007
> > [...]
> > http://www.pmwiki.org/pmwiki/uploads/Cookbook/markupexpr.php
>
> Thank you Petko for your explanation :-)
> I tried and paste some of the markupexpr.php code into my config.php
> Fearing that it could clash with the ftime in use today, I dared to
> change any "ftime" occurrence with "meftime".
> Yet, when in use in pages like Cookbook/CopyPasteCalendar it makes
> disasters :-)
> Probably the game is much more complicated than I naively guessed.
> (and yes, of course I do not understand what that code does, too
> complicated)
>
> What if one need to subtract 1 or 2 days from a certain date?
> Looking on Google, there seems to be many (supposedly) easy ways, for
> instance this javascript
>    yourDate.setDate(yourDate.getDate() - daysToSubtract);
> which looks easy to understand, but at the end I cannot imagine a way
> to actually use it on a wiki page.
>
> Is there any workaround, please?
> (if not, no problem: one cannot have everything in life)
>
> Thanks again
>
> Luigi
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>



-- 
____
http://kiwiwiki.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20140904/74b53886/attachment.html>


More information about the pmwiki-users mailing list