|
DateTimeStamp<< Extended Wiki Styles CSS1 | Cookbook-V1 | Beautifier >> Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
GoalTags to display current date / time / date + time. I use it to put the current version information into an exported document (printed or published as stand-alone HTML-files). Solutionimplemented three new tags to include the current values into a wiki page:
Discussion / Installationto activate download Attach:datetimestamp.php.txt into pmwiki-directory "local" (remove .txt from filename) and include the following statement into local/config.php: include_once('local/datetimestamp.php');
the date and time string format can be specified in the variables:
before including module (shown values are the default formats). The style can be changed by using css-style definitions in any css-file: /* samples-styles for <#>?, <#>? and <#>? tags */ .datetime, .time, .date { color:green; } Testing can be done with the wiki text Attach:DateTimeStampTest.txt See AlsoHistory
Comments & BugsContributorsAuthorKnut Alboldt pmwiki-2.2.0-beta68 -- Last modified by {{KAL}}
|