Sha256: 0789f642a75c95218ff581985d97527f7f9539f32f1fdf63d854479b730486d5

Contents?: true

Size: 711 Bytes

Versions: 8

Compression:

Stored size: 711 Bytes

Contents

---
title: Date
inMenu: true
template: /plugin.template
plugin: Tag/Date
---
h2(#description). Description


The date tag is used to display the current time in a specific format (the format of Ruby's inbuilt
method <a href="http://www.ruby-doc.org/core/classes/Time.html#M000304">Time#strftime</a>). Have a
look a the examples below to see some possible outputs.


h2(#examples). Examples


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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
webgen-0.4.2 doc/src/documentation/plugins/tag/date.page
webgen-0.4.1 doc/src/documentation/plugins/tag/date.page
webgen-0.4.0 doc/src/documentation/plugins/tag/date.page
webgen-0.4.3 doc/src/documentation/plugins/tag/date.page
webgen-0.4.5 doc/src/documentation/plugins/tag/date.page
webgen-0.4.4 doc/src/documentation/plugins/tag/date.page
webgen-0.4.6 doc/src/documentation/plugins/tag/date.page
webgen-0.4.7 doc/src/documentation/plugins/tag/date.page