mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 22:24:26 +00:00
Add datetime entities (#6513)
This commit is contained in:
@@ -99,6 +99,9 @@ struct ESPTime {
|
||||
/// Recalculate the timestamp field from the other fields of this ESPTime instance (must be UTC).
|
||||
void recalc_timestamp_utc(bool use_day_of_year = true);
|
||||
|
||||
/// Recalculate the timestamp field from the other fields of this ESPTime instance assuming local fields.
|
||||
void recalc_timestamp_local(bool use_day_of_year = true);
|
||||
|
||||
/// Convert this ESPTime instance back to a tm struct.
|
||||
struct tm to_c_tm();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user