<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks, Hans! I had assumed the page variable provides a number, not a string.<div><br class="webkit-block-placeholder"></div><div>I realize PmWiki may have to do it that way, but that presents a problem: the format for the string can be a local customization. For example, I use an international-friendly format "Wed 2008-02-27 01:23 CST". But it seems like ftime limits the formats in unspecified ways. For example, it appears to want "at" to precede time in the string - forcing me to be less concise. And in my limited tests I haven't yet found a way to put year before month before date.&nbsp;</div><div><br class="webkit-block-placeholder"></div><div>In doing these tests I've found that even when I use the standard PmWiki format with varying "when" strings, only the first invocation of ftime is actually calculated.</div><div><br class="webkit-block-placeholder"></div><div>Here's my latest test and its results.</div><div><br></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre-wrap;">(:markup:)
(:linebreaks:)
[@{(ftime %s)}@] = {(ftime %s)}
standard pmwiki format = {(ftime %s when="February 27, 2008, at 05:28 AM")}
standard pmwiki format next day = {(ftime %s when="February 28, 2008, at 05:28 AM")}
standard pmwiki format two days later = {(ftime %s when="March 1, 2008, at 05:28 AM")}
format2 = {(ftime %s when="2/27/2008 at 15:28")}
format3 = {(ftime %s when="2008-02-27 at 15:28 CST")}
format4 = {(ftime %s when="2008-02-27 at 05:28 AM")}
format5 = {(ftime %s when="2/27/2008 at 05:28 CST")}
(:markupend:)</span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre-wrap;"><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre-wrap;">-------Results:-------</span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: pre-wrap;"><br class="webkit-block-placeholder"></span></font></div><div><div><div><div><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 15px; line-height: 19px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><code class="escaped" style="font-size: 0.9em; font-family: 'Lucida Console', 'Andale Mono', 'Courier New', Courier, monospace; white-space: nowrap; ">{(ftime %s)}</code>&nbsp;= 1204138129&nbsp;<br>standard pmwiki format = 1204138129&nbsp;<br>standard pmwiki format next day = 1204138129&nbsp;<br>standard pmwiki format two days later = 1204138129&nbsp;<br>format2 = 1204138129&nbsp;<br>format3 = 1204092000&nbsp;<br>format4 = 1204092000&nbsp;<br>format5 = 1204138129</span></font></div><div><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 15px; line-height: 19px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" face="Arial" size="4"><span class="Apple-style-span" style="font-size: 15px; line-height: 19px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">Randy</span></font></div></div></div></div><div><div><br><div><div>On Feb 27, 2008, at 3:18 AM, Hans wrote:</div><blockquote type="cite"><br>The problem here is that &nbsp;{MyPage$LastModified}<br>returns a string like<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;February 27, 2008, at 09:13 AM<br></blockquote></div></div></div></body></html>