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:} Thursday, March 13 15:46:28 UTC 2014
{date: {format: %Y-%m-%d %H:%M:%S}} 2014-03-13 15:46:28
{date: {format: %x – %X}} 03/13/14 – 15:46:28