Got part of the time stuff done.
This commit is contained in:
parent
385e2a34da
commit
4f760f5edb
18
src/fenrir-package/commands/time.py
Normal file
18
src/fenrir-package/commands/time.py
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user