From 4f760f5edb76cbeeee7606fa50ad64f43b107826 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 25 Aug 2016 11:07:50 -0400 Subject: [PATCH] Got part of the time stuff done. --- src/fenrir-package/commands/time.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/fenrir-package/commands/time.py diff --git a/src/fenrir-package/commands/time.py b/src/fenrir-package/commands/time.py new file mode 100644 index 00000000..1cbfead8 --- /dev/null +++ b/src/fenrir-package/commands/time.py @@ -0,0 +1,18 @@ +#!/bin/python + +class command(): + def __init__(self): + pass + def run(self, environment): + try: + #Need to load time string from config file. + except Exception as e: + # Sane default + timeString = '%H:%M;%P' + + timeString = datetime.datetime.strftime(datetime.datetime.now(), '%H:%M:%P') + return environment + def setCallback(self, callback): + pass + def shutdown(self): + pass