Site updated at 2017-02-27 10:51:26 UTC

This commit is contained in:
Travis CI 2017-02-27 10:51:27 +00:00
parent 273b9fbc06
commit dc9bde050f
25 changed files with 39 additions and 39 deletions

View file

@ -157,7 +157,7 @@ The frontend has a template editor developer tool to help develop and debug temp
<li><code class="highlighter-rouge">relative_time(timestamp)</code> will format the date time as relative time vs now (ie 7 seconds)</li>
<li><code class="highlighter-rouge">float</code> will format the output as float.</li>
<li><code class="highlighter-rouge">strptime(string, format)</code> will parse a string to a datetime based on a <a href="https://docs.python.org/3.4/library/datetime.html#strftime-and-strptime-behavior">format</a>.</li>
<li>Filter <code class="highlighter-rouge">round(x)</code> will convert the input to a number and round it to <code class="highlighter-rouge">x</code> decimals.</li>
<li>Filter <code class="highlighter-rouge">round(x, method='common')</code> will convert the input to a number and round it to <code class="highlighter-rouge">x</code> decimals. A method can be common, ceil, or floor. If you dont specify a method common is used.</li>
<li>Filter <code class="highlighter-rouge">timestamp_local</code> will convert an UNIX timestamp to local time/data.</li>
<li>Filter <code class="highlighter-rouge">timestamp_utc</code> will convert an UNIX timestamp to UTC time/data.</li>
<li>Filter <code class="highlighter-rouge">timestamp_custom(format_string, local_boolean)</code> will convert an UNIX timestamp to a custom format, the use of a local timestamp is default, supporting <a href="https://docs.python.org/3/library/time.html#time.strftime">Python format options</a>.</li>