Back to the extension listing.
Webgen::Tag::Date
Summary
The following tag names are registered for this tag class: date
This tag uses the following options:
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
Usage | Output |
---|---|
{date:} | 2010-08-09 09:09:40 |
{date: {format: '%A, %Y-%m-%d'}} | Monday, 2010-08-09 |
{date: {format: %x - %X}} | 08/09/10 - 09:09:40 |
Back to the extension listing.