Content deleted Content added
so many ifs |
debuggy |
||
Line 231:
until eos
local s = input .. ' -> ' .. numberOfElements .. ' elements: '
Line 239:
do return s end
if (elements[1] == ELEMENT_ONETWODIGITS) then -- '3'
Line 254:
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[20]), values[9], nil) end
|