2016-10-30 17:30:09 +01:00
|
|
|
import datetime
|
2016-10-30 17:56:04 +01:00
|
|
|
import bumblebee.module
|
|
|
|
|
|
|
|
class Module(bumblebee.module.Module):
|
2016-10-31 10:45:15 +01:00
|
|
|
def __init__(self, args):
|
2016-10-31 10:53:31 +01:00
|
|
|
self._fmt = args[0] if args else "%x %X"
|
2016-10-31 10:45:15 +01:00
|
|
|
super(Module, self).__init__(args)
|
2016-10-30 17:30:09 +01:00
|
|
|
|
|
|
|
def data(self):
|
2016-10-31 10:53:31 +01:00
|
|
|
return datetime.datetime.now().strftime(self._fmt)
|
2016-10-30 17:30:09 +01:00
|
|
|
|
|
|
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|