Module:Sandbox/Hellknowz/Test: Difference between revisions

Content deleted Content added
try this
try thus
Line 261:
if (elements[8] == ELEMENT_TIMEPERIOD) then -- '3 May 2013, 10 am'
if (numberOfElements == 8) then return checkAndOutput(values[5], values[3], values[1], values[7] + periodHourAdd(values[8]), nil, nil) end
endelseif (elements[8] == ELEMENT_TIMESEPARATOR) then -- '3 May 2013, 10:'
if (elements[8] == ELEMENT_TIMESEPARATOR) then -- '3 May 2013, 10:'
if (elements[9] == ELEMENT_ONETWODIGITS) then -- '3 May 2013, 10:38'
if (numberOfElements == 9) then return checkAndOutput(values[5], values[3], values[1], values[7], values[9], nil) end
if (elements[10] == ELEMENT_TIMEPERIOD) then -- '3 May 2013, 10:38 am'
if (numberOfElements == 10) then return checkAndOutput(values[5], values[3], values[1], values[7] + periodHourAdd(values[10]), values[9], nil) end
endelseif (elements[10] == ELEMENT_TIMESEPARATOR) then -- '3 May 2013, 10:38:'
if (elements[10] == ELEMENT_TIMESEPARATOR) then -- '3 May 2013, 10:38:'
if (elements[11] == ELEMENT_ONETWODIGITS) then -- '3 May 2013, 10:38:27'
if (numberOfElements == 11) then return checkAndOutput(values[5], values[3], values[1], values[7], values[9], values[11]) end
Line 305 ⟶ 303:
end
end
elseif (elements[2] == ELEMENT_TIMESEPARATORELEMENT_TIMEPERIOD) then -- '10: am'
if (numberOfElements == 2) then return checkAndOutput(nil, nil, nil, values[1] + periodHourAdd(values[2]), nil, nil) end
end