[awesomerc] Add example with real date
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
dae5352d33
commit
d19639d555
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue