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