moltenbar/mod/date

16 lines
250 B
Plaintext
Raw Normal View History

# vim: ft=ruby
class ModDate < ModBasic
@@mod_name = 'date'
def data_loop()
while true do
$panel_data[@@mod_name.to_sym] = Time.now.strftime($config['mod']['date']['format'])
$queue << 1
2016-09-27 08:13:42 +00:00
sleep(1)
end
end
end
2016-09-27 07:27:52 +00:00
ModDate.new.mainloop()