[pmwiki-users] ({*$LastModified}) vs {(ftime fmt="%F" {*$LastModified})}

Petko Yotov 5ko at 5ko.fr
Sun May 20 16:23:07 CDT 2012


On Sunday 20 May 2012 22:18:26 ABClf wrote:
> It is a complicated for me, but that (using @) works ;
> is there a page/section in the documentation related to @ usage ?

For the timestamp {$LastModifiedTime} we have:
  http://www.pmwiki.org/wiki/PmWiki/PageVariables

For the "@timestamp" format of the markup expression, the line starting with 
"Note:" here:
  http://www.pmwiki.org/wiki/PmWiki/MarkupExpressions#ftime

Again, this will be "@{$LastModifiedTime}", not "@{$LastModified}".

If the documentation is not clear enough, feel free to improve it.

Petko

> > You can use {(ftime fmt="%F" "@{*$LastModifiedTime}")} instead, note @.
> > 
> > {*$LastModifiedTime} contains the number of seconds since 1970–01–01
> > 00:00, and preceded with @, the markup expression will be parsed
> > without problems to the real timestamp.





More information about the pmwiki-users mailing list