[pmwiki-users] Adding/subtracting days to ftime Page Text Variable
nzskiwi at gmail.com
Wed Sep 3 21:34:01 CDT 2014
You will find the documentation here
provides the information you need.
In particular see the information. and importantly the link, about the
Your contributions and updates the the PmWiki documentation would be much
appreciated if you feel it could be improved
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
> 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
> 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
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users