[pmwiki-users] New {$$ } and {( )} markups [Was: Can any of the form recipes do this?]

The Editor editor at fast.st
Tue Apr 3 18:29:16 CDT 2007


On 4/3/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Tue, Apr 03, 2007 at 05:29:24PM -0400, The Editor wrote:
> > >Interesting.  Given a pagename like 2007-03-15, my version of this would
> > >be:
> > >
> > >    {(time %B {$Name})}    # March
> > >    {(time %A {$Name})}    # Thursday
> >
> > If you can get it to work, I'd be good with this.  I suppose you can
> > somehow configure %B or %A easily enough to reflect different values?
>
> See the specification for strftime, at http://www.php.net/strftime .
> Also, strftime has the advantage that with i18n it produces date
> information formatted for languages other than English.  For
> example, if a site is configured for German, then the above
> would produce:
>
>     {(time %B {$Name})}    # März
>     {(time %A {$Name})}    # Donnerstag
>
>     {(time %c {$Name})}    # Do 15 Mär 2007 00:00:00 CDT


Once again though the ZAP markup approach is much easier than trying
to set locales and all that.  At least from what I could read of it...

Cheers,
Dan



More information about the pmwiki-users mailing list