lua rewrite
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
local util = require("modules/util")
|
||||
|
||||
local function get_system_age()
|
||||
local install_time = 1793894400 -- Choose your own install time (unix timestamp)
|
||||
local now = tonumber(util.process_get_one_line("date +%s"))
|
||||
|
||||
return util.format_time(now - install_time)
|
||||
end
|
||||
|
||||
return { name = "age", cmd = get_system_age }
|
||||
Reference in New Issue
Block a user