יחידה:תאריך עברי: הבדלים בין גרסאות בדף
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 178: | שורה 178: | ||
function tohebrew1() | function tohebrew1() | ||
local rem = remove(frame.args[1]) | local rem = mw.text.trim(remove(frame.args[1])) | ||
local take = takenumbers(rem) | local take = takenumbers(rem) | ||
if to(take) ~= rem | |||
then error("wrong date") end | |||
checkcasp(take) | checkcasp(take) | ||
take = same(take .. " + " .. diff(take) .. " days") | take = same(take .. " + " .. diff(take) .. " days") | ||