DESCRIPTION

The Date plugin provides an easy way to generate formatted
time and date strings by delegating to the POSIXstrftime() routine.

The plugin can be loaded via the familiar USE directive.

[% USE date %]

This creates a plugin object with the default name of
'date'. An alternate name can be specified as such:

[% USE myname = date %]

The plugin provides the format() method which accepts a time
value, a format string and a locale name. All of these parameters are
optional with the current system time, default format ('%H:%M:%S
%d-%b-%Y') and current locale being used respectively, if
undefined. Default values for the time, format and/or locale may be
specified as named parameters in the USE directive.

[% USE date(format = '%a %d-%b-%Y', locale = 'fr_FR') %]

When called without any parameters, the format() method
returns a string representing the current system time, formatted by
strftime() according to the default format and for the
default locale (which may not be the current one, if locale is set in the
USE directive).

[% date.format %]

The plugin allows a time/date to be specified as seconds since the epoch,
as is returned by time().

File last modified: [% date.format(filemod_time) %]

The time/date can also be specified as a string of the form h:m:s
d/m/y or y/m/d h:m:s. Any of the characters : / - or
space may be used to delimit fields.