16 lines
249 B
Ruby
16 lines
249 B
Ruby
# 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
|
|
sleep 1
|
|
end
|
|
end
|
|
end
|
|
|
|
ModDate.new.mainloop()
|