moltenbar/mod/date

13 lines
235 B
Plaintext
Raw Normal View History

# vim: ft=ruby
class ModDate < Worker
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")