SSI:The Config Directive

This directive influences the way the server outputs text when processing certain SSI commands. argument can take one of the following values

CodeFunctionCodeFunction
%aAbbreviated day name%AFull day name
%bAbbreviated month name%BFull month name
%cLocale date-time format%dDay of month - 01 to 31
%DShortcut for %m/%d/%y%eDay of month -  1 to 31
%HHour - 00 to 23%IHour - 01 to 12
%jDay of year - 001 to 366%mMonth of year - 01 to 12
%MMinute - 00 to 59%nNewline character
%pAM/PM string%rShortcut for %I:%M:%S %p
%RShortcut for %H:%M%sSeconds since January 1, 1970
%SSecond - 00 to 59%tTab character
%TShortcut for %H:%M:%S%wDay of week - 00 to 06
%WWeek of year - 00 to 53%yYear - 00 to 99
%YYear with century%ZTimezone name

A few examples are given below

FormatOutput
%A, %erd %B %Y Saturday, 4rd of February 2012
%T 13:27:37
%wth day of the %Wth week of %Y 6th day of the 05th week of 2012

You will note that the result of using these formats is not always perfect. For instance, while the 3rd of October is correct, 20rd of October is wrong. SSI conditionals can be used to handle such issues.

Jump To...

Colophon