import time from jadi import interface [docs]@interface class TZManager(): """ Abstract interface class for time zone management. All subclasses are stored in the directory managers. """ def __init__(self, context): self.context = context [docs] def get_tz(self): raise NotImplementedError [docs] def set_tz(self, name): raise NotImplementedError [docs] def list_tz(self): raise NotImplementedError [docs] def get_offset(self): return -(time.altzone if (time.daylight and time.localtime().tm_isdst > 0) else time.timezone)
Users
Plugins
Plugin Developers
Core Developers
Python API Reference
Stock Angular components
Plugin API Reference