It is a complicated for me*, but that (using @) works ;
thank you both for your help.

>Does it work if you put quotes around it?
No, apparently, @ is needed for what I want.

Gilles.

*is there a page/section in the documentation related to @ usage ?


2012/5/20 Petko Yotov <[email protected]>:
> On Sunday 20 May 2012 18:47:00 ABClf wrote:
>> At first, in template page, I used : {(ftime fmt="%F" {*$LastModified})}
>> but, strange for me, it does not work all time : in some cases, it
>> just prints out 1970–01–01 ; in other cases it shows the expected
>> date.
>
> {*$LastModified} is the time formatted according to the $TimeFmt variable.
>
> If you use {(ftime fmt="%F" "{*$LastModified}")}, note the quotes, the markup
> expression will try to parse (guess) the timestamp from the string, but this
> in some cases will not work, because the format is not standard, or is not in
> English.
>
> 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.
>
> Petko
>
>
> _______________________________________________
> pmwiki-users mailing list
> [email protected]
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users



-- 

---------------------------------------
| A | de la langue française
| B | http://www.languefrancaise.net/
| C | [email protected]
---------------------------------------

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to