18.8. Time Formats for SSI OutputSSI provides a rich set of date and time formats that can be used with the timefmt attribute of the config command. To format the date, insert the code for the format, separated by commas as you intend it to display in the inserted text: <!--#config timefmt="%A, %B %e, %Y" --> Good morning! It is now <!--#echo var="DATE_LOCAL" --> This would result in the date and time displayed in this manner: Good morning! It is now Friday, June 22, 2001 As you can see, %A specifies the full day name, %B specifies the full month name, etc. Commas placed within the list will display in the inserted date and time. Table 18-1 provides the standard SSI time format codes and their meanings. Table 18-1. SSI time formats
Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|