יחידה:תאריך עברי: הבדלים בין גרסאות בדף

אין תקציר עריכה
אין תקציר עריכה
שורה 155: שורה 155:
function checkcasp(wdate)
function checkcasp(wdate)
local wnumbers = numtonums(wdate)
local wnumbers = numtonums(wdate)
return wnumbers[3] > 359 and wnumbers[3] < 4358
if wnumbers[3] < 360 or wnumbers[3] > 4357
then error("The date is not in the allowed casp") end
end
end


שורה 177: שורה 178:
local take = takenumbers(rem, frame)
local take = takenumbers(rem, frame)
local incasp = checkcasp(take)
local incasp = checkcasp(take)
if incasp then
return from(take, frame)
return from(take, frame)
else error("The date is not in the allowed casp") end
end
end