Wrap up blog post

This commit is contained in:
Paulus Schoutsen 2016-11-19 15:55:39 -08:00
parent 1f73e8cede
commit 470cc8d728
4 changed files with 46 additions and 26 deletions

View file

@ -77,11 +77,14 @@ Home Assistant adds extensions to allow templates to access all of the current s
- `closest()` will find the closest entity.
- `relative_time(timestamp)` will format the date time as relative time vs now (ie 7 seconds)
- `float` will format the output as float.
- `strptime(string, format)` will parse a string to a datetime based on a [format][strp-format].
- Filter `round(x)` will convert the input to a number and round it to `x` decimals.
- Filter `timestamp_local` will convert an UNIX timestamp to local time/data.
- Filter `timestamp_utc` will convert an UNIX timestamp to UTC time/data.
- Filter `timestamp_custom(format_string, local_boolean)` will convert an UNIX timestamp to a custom format, the use of a local timestamp is default, supporting [Python format options](https://docs.python.org/3/library/time.html#time.strftime).
[strp-format]: https://docs.python.org/3.4/library/datetime.html#strftime-and-strptime-behavior
## {% linkable_title Examples %}
### {% linkable_title States %}