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

מאין תקציר עריכה
מאין תקציר עריכה
שורה 567: שורה 567:
         end
         end
elseif self.precision == Date.PRECISION.YEAR100 then
elseif self.precision == Date.PRECISION.YEAR100 then
local year =  math.floor((self.year+50)/100)*100 --round
if year>0 then
if year>0 then
        return 'המאה ה־'.. (year/100)
        return 'המאה ה־'.. math.ceil(self.year/100)
        else
else
        return 'המאה ה־'.. (-year/100) ..' לפנה״ס'
        return 'המאה ה־'.. math.ceil(-self.year/100) ..' לפנה״ס'
         end
         end
elseif self.precision == Date.PRECISION.YEAR10 then
elseif self.precision == Date.PRECISION.YEAR10 then