[awesomerc] Add example with real date

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-31 23:56:31 +02:00
parent dae5352d33
commit d19639d555
1 changed files with 4 additions and 1 deletions

View File

@ -212,7 +212,10 @@ end
-- Hook called every second -- Hook called every second
function hook_timer () function hook_timer ()
mytextbox:set("text", os.time() .. " time_t") -- For unix time_t lovers
mytextbox:set("text", " " .. os.time() .. " time_t ")
-- Otherwise use:
-- mytextbox:set("text", " " .. os.date() .. " ")
end end
-- Set up some hooks -- Set up some hooks