ManagerClock
homey.manager.clock
Manages the time information of the Homey.
You can access this manager through the Homey instance as self.homey.clock.
Ancestors
- Manager
- SimpleClass
- homey.util.event_emitter.EventEmitter
- typing.Generic
- abc.ABC
Methods
get_timezone
def get_timezone(self) ‑> strGet the current timezone of the Homey.
on_timezone_change
def on_timezone_change(self, f: Callable[[str], None]) ‑> SelfThe timezoneChange event is fired when the timezone of the Homey is changed.
Args
| Name | Type | Description |
|---|---|---|
f |
Callable[[str], None] | A callback that receives the new timezone. |