Jump to content

Module:Sandbox/JPxG

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by JPxG (talk | contribs) at 18:05, 13 February 2024 (test). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local p = {}

function p.currentTimestamp()
    -- Get the current timestamp in UTC
    local currentTimestamp = mw.getContentLanguage():formatDate('Y-m-d H:i:s', 'now')

    -- Return the timestamp
    return currentTimestamp
end

return p