יחידה:תאריך עברי: הבדלים בין גרסאות בדף
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 110: | שורה 110: | ||
function tohebrew(frame) | function tohebrew(frame) | ||
local hdate = frame.args[1] | |||
local s1 = find1(hdate, " "); | |||
local s2 = find1(hdate, " ", s1 + 1); | |||
h1 = sub1(hdate, 1, s1 - 1) | |||
h2 = sub1(hdate, s1 + 1, s2 - 1) | |||
h3 = sub1(hdate, s2 + 1, len1(hdate)) | |||
mtable = {"בינואר", "בפברואר", "במרץ", "באפריל", "במאי", "ביוני", | mtable = {"בינואר", "בפברואר", "במרץ", "באפריל", "במאי", "ביוני", | ||
"ביולי", "באוגוסט", "בספטמבר", "באוקטובר", "בנובמבר", "בדצמבר", } | "ביולי", "באוגוסט", "בספטמבר", "באוקטובר", "בנובמבר", "בדצמבר", } | ||
return {h1, h2, h3, h1 .. " " .. h2 .. " " .. h3} | |||
end | end | ||
return {fromhebrew = fromhebrew, tohebrew = hebrew} | return {fromhebrew = fromhebrew, tohebrew = hebrew} | ||