13.4. Configurable Time Formats for SSI Output
Among its functions, the config SSI command allows you to specify the way the time and date are displayed with the timefmt argument. It takes a number of special values that are summarized in Table 13-1.
Table 13-1. SSI time formats
The config command in the following example makes use of two of those special time values:
<!--#config timefmt="%D %r" --> The file address.html was last modified on: <!--#flastmod file="address.html"-->.
where %D specifies that the date appear in "mm/dd/yy" format, and %r specifies that the time appear as "hh/mm/ss AM|PM".
Thus the previous example produces output such as:
The file address.html was last modified on: 12/23/95 07:17:39 PM
Copyright © 2003 O'Reilly & Associates. All rights reserved.