import time import plugins.common class PluginThread(plugins.common.PluginThreadCommon): def __init__(self, section, config, thread_id): super(PluginThread, self).__init__(section, config) self.date_format = config.get(section, 'format', fallback='%c') def main(self): self.status['full_text'] = time.strftime(self.date_format)