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