Module:Time/sandbox: Difference between revisions

Content deleted Content added
Undid revision 859604807 by BrandonXLF (talk)
No edit summary
Line 257:
local patterns = {
'^([%+%-±−]?)(%d%d?)(%.)(%d%d?*)$', -- one or two fractional hour digits
'^([%+%-±−]?)(%d%d?)(:)(%d%d)$', -- two minute digits
'^([%+%-±−]?)(%d%d?)[%.:]?$', -- hours only; ignore trailing separator
Line 268:
end
end
 
if not h then
return utc_offset; -- did not match a pattern