"मोड्युल:Unsigned" का संशोधनहरू बिचको अन्तर
Content deleted Content added
सा Remove U+200e |
सा Should be exposed |
||
पङ्क्ति ३:
-- 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 == '' or string.sub(String,-string.len(End)) == End
end
local function trim(s)
return s:gsub("^%s+", ""):gsub("%s+$", ""):gsub("\226\128\142", "")
end
local function addUtcToStringIfItDoesNotEndWithUtc(s)
if s == "" or endswith(s, "~~~~") then return s end
if not endswith(s, "(UTC)") then
|