summaryrefslogtreecommitdiff
path: root/docu
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-09-29 22:55:15 +0200
committerKevin Chabowski <kevin@kch42.de>2011-09-29 22:55:15 +0200
commit9b8a50224bd9ebd1f37e7cf969d61e4a8edd0417 (patch)
tree4e3f37a8ee6b0ebe7afb8fafbe8c93180cb6b593 /docu
parentb28851a117de5a4a92a5c50b1f9738a6b6181d8d (diff)
downloadste-9b8a50224bd9ebd1f37e7cf969d61e4a8edd0417.tar.gz
ste-9b8a50224bd9ebd1f37e7cf969d61e4a8edd0417.tar.bz2
ste-9b8a50224bd9ebd1f37e7cf969d61e4a8edd0417.zip
ste:date now uses strftime
Because strftime is more flexible: You can... * ...put arbitrary text inside the format * ...manipulate it by set the locale (i.e. set language-specific month names etc.)
Diffstat (limited to 'docu')
-rw-r--r--docu/language_definition.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docu/language_definition.html b/docu/language_definition.html
index f4bbf52..c0f853b 100644
--- a/docu/language_definition.html
+++ b/docu/language_definition.html
@@ -538,10 +538,10 @@
<p>Decrements (i.e. substract 1) a variable (variable name given by parameter <code>var</code>).</p>
<h3 id="stdlib_date">ste:date</h3>
- <p>Formats a time using PHPs <a href="http://php.net/manual/en/function.date.php">date format [ext. Link]</a>. The format is given in the tag's content. You can specify a time (unix timestamp) using the <code>timestamp</code> parameter (defaults to the current time).</p>
+ <p>Formats a time using PHPs <a href="http://php.net/manual/en/function.strftime.php">strftime format [ext. Link]</a>. The format is given in the tag's content. You can specify a time (unix timestamp) using the <code>timestamp</code> parameter (defaults to the current time).</p>
<p>
Example:<br />
- <code><pre><![CDATA[<ste:date timestamp="1316357360">d. M. Y, H:i:s</ste:date>]]></pre></code>
+ <code><pre><![CDATA[<ste:date timestamp="1316357360">%d. %h. %Y, %H:%M:%S</ste:date>]]></pre></code>
Result:<br />
<code><pre><![CDATA[18. Sep. 2011, 16:49:20]]></pre></code>
</p>