One of the very useful characteristics of mod_include is it's ability to
insert date strings into documents. The output can be customized by use of
the timefmt directive and then echoing the DATE_LOCAL variable.
If no timefmt string is set, the output from this:
<!--#echo var="DATE_LOCAL" -->
is just this:
Per the mod_include documentation:
timefmt
The value is a string to be used by the strftime(3) library routine when
printing dates.
So for instance this code:
<!--#config timefmt="%B %e, %Y" --><!--#echo var="DATE_LOCAL" -->
will output this result:
and this code:
<!--#config timefmt="%A, %b %e" --><!--#echo var="DATE_LOCAL" -->
will output this result
and this code:
<!--#config timefmt="%A, %B %e, %Y" --><!--#echo var="DATE_LOCAL" -->
will output this result
What follows is a summary of the various strftime time output format
manipulations available.
%A is replaced by national representation of the full weekday name.
<!--#config timefmt="%A" -->
%a is replaced by national representation of the abbreviated weekday
name, where the abbreviation is the first three characters.
<!--#config timefmt="%a" -->
%B is replaced by national representation of the full month name.
<!--#config timefmt="%B" -->
%b is replaced by national representation of the abbreviated month
<!--#config timefmt="%b" -->
name, where the abbreviation is the first three characters.
%C is replaced by (year / 100) as decimal number; single digits are
preceded by a zero.
<!--#config timefmt="%C" -->
%c is replaced by national representation of time and date (the format
is similar with produced by asctime(3)).
<!--#config timefmt="%c" -->
%D is equivalent to ``%m/%d/%y''.
<!--#config timefmt="%D" -->
%d is replaced by the day of the month as a decimal number (01-31).
<!--#config timefmt="%d" -->
%e is replaced by the day of month as a decimal number (1-31); single
digits are preceded by a blank.
<!--#config timefmt="%e" -->
%H is replaced by the hour (24-hour clock) as a decimal number
(00-23).
<!--#config timefmt="%H" -->
%h the same as %b.
<!--#config timefmt="%h" -->
%I is replaced by the hour (12-hour clock) as a decimal number
(01-12).
<!--#config timefmt="%I" -->
%j is replaced by the day of the year as a decimal number (001-366).
<!--#config timefmt="%j" -->
%k is replaced by the hour (24-hour clock) as a decimal number (0-23);
<!--#config timefmt="%k" -->
%l is replaced by the hour (12-hour clock) as a decimal number (1-12);
single digits are preceded by a blank.
<!--#config timefmt="%l" -->
%M is replaced by the minute as a decimal number (00-59).
<!--#config timefmt="%M" -->
%m is replaced by the month as a decimal number (01-12).
<!--#config timefmt="%m" -->
%n is replaced by a newline.
%p is replaced by national representation of either "ante meridiem" or
"post meridiem" as appropriate.
<!--#config timefmt="%p" -->
%R is equivalent to ``%H:%M''.
<!--#config timefmt="%R" -->
%r is equivalent to ``%I:%M:%S %p''.
<!--#config timefmt="%A" -->
%S is replaced by the second as a decimal number (00-60).
<!--#config timefmt="%S" -->
%s is replaced by the number of seconds since the Epoch, UTC (see
mktime(3)).
<!--#config timefmt="%s" -->
%T is equivalent to ``%H:%M:%S''.
<!--#config timefmt="%T" -->
%t is replaced by a tab.
%U is replaced by the week number of the year (Sunday as the first day
of the week) as a decimal number (00-53).
<!--#config timefmt="%A" -->
%u is replaced by the weekday (Monday as the first day of the week) as
a decimal number (1-7).
<!--#config timefmt="%u" -->
%V is replaced by the week number of the year (the first Monday as the
first day of week 1) as a decimal number (01-53).
<!--#config timefmt="%V" -->
%v is equivalent to ``%e-%b-%Y''.
<!--#config timefmt="%v" -->
%W is replaced by the week number of the year (Monday as the first day
of the week) as a decimal number (00-53).
<!--#config timefmt="%W" -->
%w is replaced by the weekday (Sunday as the first day of the week) as
a decimal number (0-6).
<!--#config timefmt="%w" -->
%X is replaced by national representation of the time.
<!--#config timefmt="%X" -->
%x is replaced by national representation of the date.
<!--#config timefmt="%x" -->
%Y is replaced by the year with century as a decimal number.
<!--#config timefmt="%Y" -->
%y is replaced by the year without century as a decimal number
(00-99).
<!--#config timefmt="%y" -->
%Z is replaced by the time zone name.
<!--#config timefmt="%Z" -->
%+ is replaced by national representation of the date and time (the
format is similar with produced by date(1)).
<!--#config timefmt="%+" -->
%% is replaced by `%'.