Sha256: 0254f7d534127a494b75b286087ac8b25e08bd8de28ea264f21e8314597b102d

Contents?: true

Size: 654 Bytes

Versions: 26

Compression:

Stored size: 654 Bytes

Contents

---
title: Webgen::Tag::Date
used_options:
  - tag.date.format
---
## Description

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

[1]: http://www.ruby-doc.org/core/classes/Time.html

## Examples

<table class="examples">
<tr>
  <th>Usage</th><th>Output</th>
</tr>
<tr>
  <td>\{date:}</td>
  <td>{date:}</td>
</tr>
<tr>
  <td>\{date: {format: '%A, %Y-%m-%d'}}</td>
  <td>{date: {format: '%A, %Y-%m-%d'}}</td>
</tr>
<tr>
  <td>\{date: {format: %x - %X}}</td>
  <td>{date: {format: %x - %X}}</td>
</tr>
</table>

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
gettalong-webgen-0.5.4.20080929 doc/tag/date.page
gettalong-webgen-0.5.5.20081001 doc/tag/date.page
gettalong-webgen-0.5.5.20081010 doc/tag/date.page
gettalong-webgen-0.5.5.20081012 doc/tag/date.page
gettalong-webgen-0.5.6.20081020 doc/tag/date.page
gettalong-webgen-0.5.7.20090227 doc/tag/date.page
gettalong-webgen-0.5.8.20090507 doc/tag/date.page
gettalong-webgen-0.5.9.20090620 doc/tag/date.page
gettalong-webgen-0.5.9.20090626 doc/tag/date.page
thewoolleyman-webgen-0.5.8.20090419 doc/tag/date.page
webgen-0.5.17 doc/tag/date.page
webgen-0.5.15 doc/tag/date.page
webgen-0.5.14 doc/tag/date.page
webgen-0.5.13 doc/tag/date.page
webgen-0.5.12 doc/tag/date.page
webgen-0.5.11 doc/tag/date.page
webgen-0.5.10 doc/tag/date.page
webgen-0.5.9 doc/tag/date.page
webgen-0.5.2 doc/tag/date.page
webgen-0.5.4 doc/tag/date.page