"मोड्युल:Unsigned" का संशोधनहरू बिचको अन्तर
Content deleted Content added
For {{Template:Unsigned}} |
Fix |
||
पङ्क्ति ३:
-- 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.
function
return End == '' or string.sub(String,-string.len(End)) == End
end
function trim(s)
return s:gsub("^%s+", ""):gsub("%s+$", "")
end
function addUtcToStringIfItDoesNotEndWithUtc(s)
if not
return trim(s) .. " (UTC)"
end
return s
Line १५ ⟶ १९:
function p.main(frame)
local
return addUtcToStringIfItDoesNotEndWithUtc(hopefullyTimestamp)
end
|