webgen logo

webgen / static website generator

static website generation made easy!

Latest news

2007-12-31: Minor release with feature enhancements. More...

2007-09-08: Small bug fix release. More...

2007-06-29: Some bug fixes and one small feature enhancement. More...

Links

Generated by webgen

General Information

Plugin name:Tag/Date (Tag/Default)
Author:Thomas Leitner <t_leitner@gmx.at>
Summary:Prints out the current date/time in a customizable format
Parameters:

format"%A, %B %d %H:%M:%S %Z %Y"
The format of the date (same options as Ruby's Time#strftime).

Handled tags:date

Description

The date tag is used to display the current time in a specific format (the format of Ruby’s inbuilt method Time#strftime). Have a look a the examples below to see some possible outputs.

Examples

UsageOutput
{date:} Sunday, June 22 16:42:17 CEST 2008
{date: {format: %Y-%m-%d %H:%M:%S}} 2008-06-22 16:42:17
{date: {format: %x – %X}} 06/22/08 – 16:42:17