Module:Sandbox/Hellknowz/Test: Difference between revisions

Content deleted Content added
expand to allow output of hms
try this
Line 274:
if (numberOfElements == 10) then return checkAndOutput(values[5], values[3], values[1], values[7] + periodHourAdd(values[12]), values[9], values[11]) end
end
end
end
end
end
end
end
end
end
end
elseif (elements[2] == ELEMENT_TIMESEPARATOR) then -- '10:'
if (elements[3] == ELEMENT_ONETWODIGITS) then -- '10:28'
if (numberOfElements == 3) then return checkAndOutput(nil, nil, nil, values[1], values[3], nil) end
if (elements[4] == ELEMENT_TIMESEPARATOR) then -- '10:28:'
if (elements[5] == ELEMENT_ONETWODIGITS) then -- '10:28:27'
Line 304 ⟶ 305:
end
end
elseif (elements[2] == ELEMENT_TIMESEPARATOR) then -- '10:'
end
end
 
elseif (elements[1] == ELEMENT_FOURDIGITS) then -- '2013'