Use .timestamp instead of .time in time docs (#435)

`.time` is deprecated since https://github.com/esphome/esphome/pull/531; this updates the reference in the documentation so that warnings like the following can be avoided:

```
src/main.cpp: In lambda function:
src/main.cpp:462:20: warning: 'esphome::time::ESPTime::<anonymous union>::time' is deprecated (declared at src/esphome/components/time/real_time_clock.h:35): .time is deprecated, use .timestamp instead [-Wdeprecated-declarations]
       return (time.time);
 ```
This commit is contained in:
David Beitey 2019-12-08 02:16:06 +10:00 committed by Otto Winter
parent 9382e2f37a
commit c8baae2bc6
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ created based on a given format. If you want to get the current time attributes,
-------------------- ---------------------------------------- ---------------------------------------- --------------------
``.is_dst`` Is daylight savings time false, true true
-------------------- ---------------------------------------- ---------------------------------------- --------------------
``.time`` Unix epoch time (seconds since UTC [-2147483648 - 2147483647] (negative 1534606002
``.timestamp`` Unix epoch time (seconds since UTC [-2147483648 - 2147483647] (negative 1534606002
Midnight January 1, 1970) values for time past January 19th 2038)
-------------------- ---------------------------------------- ---------------------------------------- --------------------
``.is_valid()`` Basic check if the time is valid false, true true