Content deleted Content added
m 11 |
add range validity |
||
Line 98:
if (minute2 and not checkIfMinuteValid(minute2)) then return nil; end
if (second2 and not checkIfSecondValid(second2)) then return nil; end
-- Check that end date is actually after start date
if (year2 and year) then
if (year2 < year) then return nil end
if (year2 == year) then
if (month2 and month) then
if (month2 < month) then return nil end
if (month2 == month) then
if (day2 and day) then
if (day2 < day) then return nil end
-- TODO: compare time
end
end
end
end
end
-- time only
|