diff --git a/bumblebee/modules/date.py b/bumblebee/modules/date.py index 5a370f9..bde6404 120000 --- a/bumblebee/modules/date.py +++ b/bumblebee/modules/date.py @@ -1 +1 @@ -time.py \ No newline at end of file +datetime.py \ No newline at end of file diff --git a/bumblebee/modules/datetime.py b/bumblebee/modules/datetime.py new file mode 120000 index 0000000..5a370f9 --- /dev/null +++ b/bumblebee/modules/datetime.py @@ -0,0 +1 @@ +time.py \ No newline at end of file diff --git a/bumblebee/modules/time.py b/bumblebee/modules/time.py index 5254506..a436c29 100644 --- a/bumblebee/modules/time.py +++ b/bumblebee/modules/time.py @@ -1,3 +1,5 @@ +from __future__ import absolute_import + import datetime import bumblebee.module @@ -6,8 +8,12 @@ class Module(bumblebee.module.Module): super(Module, self).__init__(args) module = self.__module__.split(".")[-1] + default = "%x %X" + if module == "date": + default = "%x" + if module == "time": + default = "%X" - default = "%x" if module == "date" else "%X" self._fmt = args[0] if args else default