<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Actually, the utime function does not correctly return the number of seconds from the unix epoch.</div><div><br class="webkit-block-placeholder"></div><div>At 7:30 p.m. I tried this:</div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 13px; white-space: pre-wrap; ">{(sub (utime now) (utime {MyPage$LastModified}) )}</span></div><div><br class="webkit-block-placeholder"></div><div>It evaluated to over 20 hours, even though I had modified MyPage within the previous minute or two. </div><div><br class="webkit-block-placeholder"></div><div>I suspect utime loses precision when it calls the date function. </div><div><br class="webkit-block-placeholder"></div><div>Is there a way to get the actual number of seconds?</div><div><br class="webkit-block-placeholder"></div><div>Randy</div><br><div><div>On Feb 26, 2008, at 5:08 AM, Hans wrote:</div><blockquote type="cite"></blockquote><br><blockquote type="cite">The following markup expression will give a unix timestamp<br>(seconds from the unix epoch 1-Jan-1970 00:00 UTC)</blockquote><blockquote type="cite"><br># unix time, seconds since 1970-01-01<br>$MarkupExpr['utime'] = 'MxUTime($args[0])';<br>function MxUTime($arg) {<br> $udate = date('U', strtotime($arg));<br> if ($arg=='now') $udate = time();<br> return $udate;<br>}<br></blockquote></div><br></body></html>