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

Patrick R. Michaud pmichaud at pobox.com
Tue Apr 3 17:47:18 CDT 2007


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

Pm



More information about the pmwiki-users mailing list