Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2023-09-21 12:14:12 +00:00
parent 4203d6269a
commit 31aeacfccd

View File

@ -1,12 +1,12 @@
# vim: ft=ruby
class ModDate < Worker
def mainloop()
while true do
self.write Time.now.strftime(@my_config['format'])
sleep(1)
end
end
def mainloop()
while true do
self.write Time.now.getlocal(@my_config['offset']).strftime(@my_config['format'])
sleep(1)
end
end
end
Modules.add("date", "ModDate")