2016-09-27 01:18:43 +00:00
|
|
|
# vim: ft=ruby
|
|
|
|
|
2016-09-28 20:30:07 +00:00
|
|
|
class ModDate < Worker
|
|
|
|
def mainloop()
|
2016-09-27 01:18:43 +00:00
|
|
|
while true do
|
2016-10-04 12:34:25 +00:00
|
|
|
self.write Time.now.strftime(@my_config['format'])
|
2016-09-27 08:13:42 +00:00
|
|
|
sleep(1)
|
2016-09-27 01:18:43 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2016-09-28 20:30:07 +00:00
|
|
|
Modules.add("date", "ModDate")
|