correct LastModified macro docs and provide an example for the Date macro to do the task that people want

This commit is contained in:
Colin Kuskie 2007-01-30 17:49:35 +00:00
parent de1d4f1373
commit 7279930574
2 changed files with 6 additions and 2 deletions

View file

@ -52,6 +52,8 @@ The current date and time.
</p>
<p>You can also pass in an epoch date into this macro as a secondary parameter. If no date is specified then today's date and time will be used.</p>
<p>One common task done with this macro is to display the date that an Asset was last modified. It uses the <b>revisionDate</b> template variable which is available for all Assets.</p>
<p>&#94;D("%z",<tmpl_var revisionDate>);</p>
<p>This Macro may be nested inside other Macros if the formatted date does not contain commas or quotes.</p>
|,

View file

@ -21,13 +21,15 @@ our $I18N = {
message => q|
<p><b>&#94;LastModified;</b><br />
<b>&#94;LastModified(<i>"text"</i>,<i>"date format"</i>);</b><br />
Displays the date that the current page was last modified based upon the wobjects on the page. By default, the date is displayed based upon the user's date preferences. Optionally, it can take two parameters. The first is text to display before the date. The second is a date format string (see the date macro, &#94;D;, for details.
Displays the date that the current page was last edited. By default, the date is displayed based upon the user's date preferences. Optionally, it can take two parameters. The first is text to display before the date. The second is a date format string (see the date macro, &#94;D;, for details.
</p>
<p><i>Example:</i> &#94;LastModified("Updated: ","%c %D, %y");
</p>
<p>If you would like to get the last modified time of Assets on a page, see the Date macro for an example.
</p>
<p>This Macro may be nested inside other Macros if the text it returns does not contain commas or quotes.</p>
|,
lastUpdated => 1168622573,
lastUpdated => 1170179085,
},
};