Jump to content

Module:Sandbox/JPxG

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by JPxG (talk | contribs) at 18:09, 13 February 2024. The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

local p = {}

p.main = function(frame)
    -- os.date provides formatted date/time strings
    -- '%y-%m-%d %H:%M:%S' formats the date as 'YY-MM-DD HH:MM:SS'
    local serverTime = os.date('!%y-%m-%d %H:%M:%S')

    return serverTime
end

return p