mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Update history_stats.markdown (#23405)
This commit is contained in:
parent
111e71497c
commit
3091d230cd
@ -181,6 +181,17 @@ Here, last Monday is _today_ as a timestamp, minus 86400 times the current weekd
|
||||
|
||||
{% endraw %}
|
||||
|
||||
**Current month**: starts the first day of the current month at 00:00, ends right now.
|
||||
|
||||
{% raw %}
|
||||
|
||||
```yaml
|
||||
start: "{{ now().replace(day=1, hour=0, minute=0, second=0, microsecond=0 ) }}"
|
||||
end: "{{ now() }}"
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
||||
**Next 4 pm**: 24 hours, from the last 4 pm till the next 4 pm. If it hasn't been 4 pm today, that would be 4 pm yesterday until 4 pm today. If it is already past 4 pm today, it will be 4 pm today until 4 pm tomorrow. When changing the start time, then add or subtract to the 8-hour buffer to match the next midnight.
|
||||
|
||||
{% raw %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user