mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
Update real_time_clock.h
This commit is contained in:
parent
7130245685
commit
0b5838ca8e
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class RealTimeClock : public PollingComponent {
|
||||||
/// Set the time zone.
|
/// Set the time zone.
|
||||||
void set_timezone(const std::string &tz) { this->timezone_ = tz; }
|
void set_timezone(const std::string &tz) { this->timezone_ = tz; }
|
||||||
|
|
||||||
void set_time(uint32_t epoch) { this->synchronize_epoch_(epoch); }
|
void set_epoch(uint32_t epoch) { this->synchronize_epoch_(epoch); }
|
||||||
|
|
||||||
/// Get the time zone currently in use.
|
/// Get the time zone currently in use.
|
||||||
std::string get_timezone() { return this->timezone_; }
|
std::string get_timezone() { return this->timezone_; }
|
||||||
|
|
Loading…
Reference in a new issue