יחידה:תאריך: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 325: | שורה 325: | ||
end | end | ||
function Date.le(t1, t2) | function Date.le(t1, t2, correct_calender) | ||
if t1.calendar ~= t2.calendar then | if t1.calendar ~= t2.calendar then | ||
if correct_calender then | |||
t1 = Date.julianToGregorian(t1) | |||
t2 = Date.julianToGregorian(t2) | |||
else | |||
error("Calanders dont match", 2) | |||
end | |||
end | end | ||
if t1.year < t2.year then | if t1.year < t2.year then | ||