Site updated at 2017-02-28 04:08:21 UTC
This commit is contained in:
parent
54503db601
commit
6c288b4d07
25 changed files with 40 additions and 39 deletions
|
@ -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, 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 don’t specify a method ‘common’ is used.</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">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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue