Jump to content

Module:Unsigned: Difference between revisions

no edit summary
(Created page with "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 funct...")
 
No edit summary
 
Line 13: Line 13:
local function addUtcToStringIfItDoesNotEndWithUtc(s)
local function addUtcToStringIfItDoesNotEndWithUtc(s)
if s == "" or endswith(s, "~~~~") then return s end
if s == "" or endswith(s, "~~~~") then return s end
if not endswith(s, "(UTC)") then
if not endswith(s, "(IST)") then
return s .. " (UTC)"
return s .. " (IST)"
end
end
return s
return s