mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Update real_time_clock.h
This commit is contained in:
parent
ab620acd4f
commit
7130245685
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ 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); }
|
||||||
|
|
||||||
/// 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