אונטערשייד צווישן ווערסיעס פון "יחידה:אידישע דאטום"

קיין ענדערונג אין גרייס ,  פֿאַר 2 יאָר
אידיש
ק (תנא קמא האט אריבערגעפירט בלאט יחידה:תאריך עברי צו יחידה:אידישע דאטום אן לאזן א ווייטערפירונג)
(אידיש)
שורה 298: שורה 298:
function fromhebrewmonth(hdate)
function fromhebrewmonth(hdate)
if frame.args["exact"] == "כן"
if frame.args["exact"] == "כן"
then return fromhebrewdate('ט"ו ב' .. hdate, tomonth) end
then return fromhebrewdate('ט"ו ' .. hdate, tomonth) end
local date1 = fromhebrewdate("א' ב" .. hdate, same)
local date1 = fromhebrewdate("א' " .. hdate, same)
local month1 = toonlymonth(date1)
local month1 = toonlymonth(date1)
local year1 = toyear(date1)
local year1 = toyear(date1)
local date2 = same(date1 .. " + 30 days")
local date2 = same(date1 .. " + 30 days")
date2 = frommonth(date2)
date2 = frommonth(date2)
date2 = fromhebrewdate("א' ב" .. date2, same)
date2 = fromhebrewdate("א' " .. date2, same)
date2 = same(date2 .. " - 1 days")
date2 = same(date2 .. " - 1 days")
local month2 = toonlymonth(date2)
local month2 = toonlymonth(date2)
שורה 398: שורה 398:
function tohebrewmonth(wdate)
function tohebrewmonth(wdate)
if frame.args["exact"] == "כן"
if frame.args["exact"] == "כן"
then return tohebrewdate("15 ב" .. wdate, frommonth) end
then return tohebrewdate("15טן " .. wdate, frommonth) end
local date1 = tohebrewdate("1 ב" .. wdate, same)
local date1 = tohebrewdate("1טן " .. wdate, same)
local month1 = fromonlymonth(date1)
local month1 = fromonlymonth(date1)
local year1 = fromyear(date1)
local year1 = fromyear(date1)
local date2 = same(date1 .. " + 31 days")
local date2 = same(date1 .. " + 31 days")
date2 = tomonth(date2)
date2 = tomonth(date2)
date2 = tohebrewdate("1 ב" .. date2, same)
date2 = tohebrewdate("1טן " .. date2, same)
date2 = same(date2 .. " - 1 days")
date2 = same(date2 .. " - 1 days")
local month2 = fromonlymonth(date2)
local month2 = fromonlymonth(date2)