[pmwiki-users] {(...)} markup recipe available
The Editor
editor at fast.st
Mon Apr 16 09:28:38 CDT 2007
On 4/16/07, Hans <design5 at softflow.co.uk> wrote:
> Monday, April 16, 2007, 3:06:59 PM, The wrote:
>
> > So how do you get a timestamp...
>
> > I spent hours debugging my code only to discover the problem was
> > there. I never could find out how to do it, so added my own {(time)}
> > extension to produce a timestamp. Did I miss something? I tried the
> > %s thing but no luck. It's also not on the php documentation page.
>
> Not sure what the problem is. I thought you use a date/time markup
> expression as value in a hidden field named date perhaps, and use
> {date} (or now in Fox {$$date} ) in the template, and Zap or Fox will
> just replace that with the expression: so date/time is stamped,
> written as string, into the target page.
>
> Apart from that Fox inherited from AddDeleteLine2 two date
> substitution rules it applies if it finds the appropriate markup.
>
> But I probably misunderstood you.
>
>
> ~Hans
I've been using the {(time)} markup, now changed to {(ftime)} by Pm.
But can no longer get it to produce a pure timestamp. Wish that had
been the default. I thought Pm said somewhere {(ftime %s)} would
produce a timestamp, but didn't really test it out--only after several
hours debugging code did I finally discover where the problem was.
Still, would prefer to not have to do a separate markup.
Cheers,
Dan
More information about the pmwiki-users
mailing list