local p =
-- There's probably a way to use strptime or some other more sophisticated way, but you're not supposed to be using a non-timestamp as input anyway.
local function endswith(String,End) return End
Endend
local function trim(s) return s:gsub("^%s+", ""):gsub("%s+$", ""):gsub("\226\128\142", "")end
local function addUtcToStringIfItDoesNotEndWithUtc(s) if s
local function _main(args) local hopefullyTimestamp = args[1] or os.date('%H:%M, %d %B %Y (%Z)') return addUtcToStringIfItDoesNotEndWithUtc(trim(hopefullyTimestamp))end
function p.main(frame) local args if type(frame.args)
return p