date
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
4203d6269a
commit
31aeacfccd
12
mod/date
12
mod/date
@ -1,12 +1,12 @@
|
|||||||
# vim: ft=ruby
|
# vim: ft=ruby
|
||||||
|
|
||||||
class ModDate < Worker
|
class ModDate < Worker
|
||||||
def mainloop()
|
def mainloop()
|
||||||
while true do
|
while true do
|
||||||
self.write Time.now.strftime(@my_config['format'])
|
self.write Time.now.getlocal(@my_config['offset']).strftime(@my_config['format'])
|
||||||
sleep(1)
|
sleep(1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Modules.add("date", "ModDate")
|
Modules.add("date", "ModDate")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user