2008-07-21 13:31:57 +02:00
|
|
|
[[!template id=plugin name=prettydate author="[[Joey]]"]]
|
2008-10-18 02:47:32 +02:00
|
|
|
[[!tag type/date]]
|
2007-02-15 08:53:04 +01:00
|
|
|
|
|
|
|
Enabling this plugin changes the dates displayed on pages in the wiki to
|
2007-02-15 21:06:14 +01:00
|
|
|
a format that is nice and easy to read. Examples: "late Wednesday evening,
|
|
|
|
February 14th, 2007", "at midnight, March 15th, 2007"
|
2007-02-15 08:53:04 +01:00
|
|
|
|
|
|
|
The names given to each of the hours in the day can be customised by
|
|
|
|
setting the `timetable` configuration variable in ikiwiki's setup file.
|
|
|
|
The default value of this configuration value can be seen near the top of
|
2007-02-15 09:56:36 +01:00
|
|
|
`prettydate.pm`. Note that an hour can be left blank, to make it display the
|
2007-02-15 08:53:04 +01:00
|
|
|
same as the hour before. Midnight, noon, and teatime are all hardcoded,
|
|
|
|
since they do not occupy the whole hour.
|
|
|
|
|
|
|
|
The format used for the date can be customised using the `prettydateformat`
|
|
|
|
configuration variable in the setup file. `%X` will be expanded to the
|
2007-02-15 21:06:14 +01:00
|
|
|
prettified time value. The default prettydateformat is `"%X, %B %o, %Y"`.
|
2007-02-15 08:53:04 +01:00
|
|
|
|
2008-07-21 13:31:57 +02:00
|
|
|
This plugin uses the [[!cpan TimeDate]] perl module.
|